Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Summary
Synonym Match Score
synonym_match_scoreis a per-hit signal returned insidetext_match_infofor text search results.It indicates whether a hit matched through a synonym rewrite, and whether synonym prefix matching was involved.
Values
0: the hit did not come from a synonym rewrite1: the hit came from a synonym rewrite without synonym prefix matching2: the hit came from a synonym rewrite withsynonym_prefix=trueThe response also includes:
synonym_match: boolean forsynonym_match_score > 0Response
Example:
{ "document": { "id": "1", "title": "Cool Trousers" }, "text_match": 578730123373578267, "text_match_info": { "score": "578730123373578267", "tokens_matched": 1, "fields_matched": 1, "best_field_score": "1108091342849", "best_field_weight": 1, "num_tokens_dropped": 0, "typo_prefix_score": 0, "synonym_match_score": 1, "synonym_match": true } }Notes
synonym_match_score=2means the hit was produced from the synonym search path with synonym prefix matching enabled.PR Checklist