Pantelis Panayiotou
06/26/2023, 12:33 PMKishore Nallan
06/26/2023, 12:35 PMPantelis Panayiotou
06/26/2023, 12:45 PMPantelis Panayiotou
06/26/2023, 12:51 PMKishore Nallan
06/26/2023, 12:58 PMprioritize_exact_match: false
The exact match with the word croissant
on the food
field is giving it a higher text match score. Weight is used to influence the ranking when match score is the same.Pantelis Panayiotou
06/26/2023, 12:59 PMKishore Nallan
06/26/2023, 12:59 PMtext_match_type
parameter which can help with the behavior you want.
Here's what the docs say:
In a multi-field matching context, this parameter determines how the representative text match score of a record is calculated.
Possible values: `max_score` (default) or `max_weight`.
In the default `max_score` mode, the best text match score across all fields are used as the representative score of this record. Field weights are used as tie breakers when 2 records share the same text match score.
In the `max_weight` mode, the text match score of the highest weighted field is used as the representative text relevancy score of the record.
Kishore Nallan
06/26/2023, 1:00 PMtext_match_type: 'max_weight'
Pantelis Panayiotou
06/26/2023, 1:00 PMPantelis Panayiotou
06/26/2023, 1:04 PMPantelis Panayiotou
06/26/2023, 1:05 PMPantelis Panayiotou
06/26/2023, 1:06 PMKishore Nallan
06/26/2023, 1:07 PMPantelis Panayiotou
06/26/2023, 1:07 PM