hi, is there a good way to deal with a specific te...
# community-help
t
hi, is there a good way to deal with a specific term I want to deal with in a special way.. Say there is a brand name made up of 2 words "Banana Computers". Is there a way for me to not hit documents with the whole phrase "Banana Computers" when searching just "Banana" ? The only thing I can think of is replacing all occurrences of "Banana Computers" before indexing with say "BananaComputers" and then likewise on searching. I don't think I can use synonyms here right as its 2 words ? Thanks
h
Hi Tim, Does curation fit your use case?
Copy code
{
  "rule": {
    "query": "Banana",
    "match": "exact"
  },
  "filter_by": "brand:!`Banana Computer`"
}
> I don't think I can use synonyms here right as its 2 words ? Yes you can, synonyms work even when there is a space between words
t
Thanks for the reply. I want "Banana" to Not trigger results with "Banana computer". I think your example would be the other way around? so say there is a document with the phrase "Banana computer" in it.. I dont want that returned just because someone searched for "banana" in this case
h
I think your example would be the other way around?
No, if an user query exactly "Banana", the filter `brand:!`Banana Computer`` will be applied and it will exclude any documents with the word "Banana Computer" in it.
t
ah yes I see thanks. I missed the ! bit
👍 1