nlpFilter prioritization when searched by multiple keywords in the same filed

My understanding is that a nlpFilter can filter only one value even if multiple values are registered in a text list format field. In this case, is there any way to set which value is priority when searched by multiple keywords in the same field?

1 Like

Hi Hiromi,

Thanks for reaching out. This is not possible today but an interesting idea! Could you elaborate a bit more on the use case? What would be an example phase/phasing where this is needed? It seems it could make more sense to use textSearch for the searchable field and maybe also create a facet for the field.

Thanks,
Alyssa

Hi Alyssa,

Thanks for the reply. Yes, using textSearch or facet is the option as you advised!
I can’t go into too much detail, but let’s say you create a field called Location Type and apply a nlpFilter to it, and there will be “Branch” or “ATM” in the field. In this case, if the search query is “Branch ATM”, neither the branch nor the ATM will be returned due to the conflict… so I want to prioritize “Branch” and return branch information without using query rules. (the reality is more complex though…)

Thanks,
Hiromi