I am trying to do a search but want the search to ...
# community-help
t
I am trying to do a search but want the search to consider two words in the search not just 1. So for instance if I have a dataset that has the names { “name”: “Site 1", “name”: “Site 2", “name”: “Site 3", “name”: “Site 4"} and I search search by names for “Site 12” I want it to not return anything because there is no “Site 12" in the dataset. Right now it is returning them all because “Site” is found in all of the names. Is there any way to adjust the search to find values that basically and words separated by spaces?
j
You can surround the search term with double-quotes to ensure a strict match
Eg:
"Site 12"
t
Is that the only way?
j
You could try setting
drop_tokens_threshold: 0
,
typo_tokens_threshold: 0
,
prefix: false