Azure / Azure/azure-sdk-for-python

Support fuzzy match and multiple hits for tag scoring

Offen
#39,635 4 Kommentare 0 Reaktionen 2 zugewiesene Personen Beansprucht von @mattgotteiner Auf GitHub ansehen
Client customer-reported feature-request needs-team-attention Search
Vorherrschende Sprache
Python
Sterne
5.6k
Forks
3.4k
Ø Merge
2 T.
Gemergte PRs (30 T.)
217

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.