There's also a best field weight which might help identify the field. But weights are normalised so might not match exactly with values sent if the weight values are large.
Kishore Nallan
09/19/2023, 12:48 PM
Ofc if several fields share weights then this won't help.
j
Jack Wilsdon
09/19/2023, 12:48 PM
I'm not sending any specific weights right now, so I assume all of the fields are weighted the same.
Jack Wilsdon
09/19/2023, 12:49 PM
Essentially I want to show only the field that "most" matched the search term in the UI - is there another way to go about doing that?
k
Kishore Nallan
09/19/2023, 12:50 PM
Hmm that's not quite possible
j
Jack Wilsdon
09/19/2023, 12:52 PM
I guess I'll just sort the highlight fields by number of matched tokens and pick the highest one then, cheers.