Azure / Azure/azure-sdk-for-python
Support fuzzy match and multiple hits for tag scoring
- Lingua principale
- Python
- Stelle
- 5.6k
- Fork
- 3.4k
- Merge medio
- 2g 2h
- PR unite (30g)
- 202
Descrizione
We can set up the tag scoring profile by this:
```
scoring_profiles = [
ScoringProfile(
name="my-scoring-profile",
functions=[
TagScoringFunction(
field_name="tags",
boost=10,
parameters=TagScoringParameters(
tags_parameter="tags",
),
)
],
)
]
```
But it will just boost the score if exact match is hit and even though I have multiple hits say "tags-house,car,watch" I could only get the same score as the hit is only 1.
So do we have fuzzy match like allowing editdistance within~3 and get multiplier scores if multiple values are hit in the tags. This is especially useful in a lot of cases.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.