Skip to content

Support fuzzy match and multiple hits for tag scoring #39635

@HuskyDanny

Description

@HuskyDanny

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.

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.Searchcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions