We have a collection with a string[ ] field, and w...
# community-help
r
We have a collection with a string[] field, and when we query by that field, if that array has multiple elements that have that search term highlighted it ranks higher than other string fields. Is it possible to introduce a new query param in the search API endpoint to disable this functionality and to treat multiple hits in the same array field (1 hit in each element) of the same document with the same rank as if that field would be a simple string with just 1 hit?
j
@Robert Schultz Could you try reducing the weight of this field using
query_by_weights
?
r
@Robert Preoteasa I think Jason’s reply was for you :)
j
Oh, my bad. Sorry about that!