Hello there, Algolia Community!
I have an index made up of NAICS codes and their descriptions. NAICS is an extensive business classification system (~20k codes/descriptions) developed by the US census department.
They use a common convention in descriptions to exclude certain operations by using the keyword “except”.
This means that if I search my index for “Soybean Farming” I get back two records:
- “Soybean farming, field and seed production”
- “Oilseed farming (except soybean), field and seed production”
I want to exclude #2 if a keyword is explicitly negated by the “except” keyword.
Anyone ever encounter a similar scenario? Any pointers for me?
Thank you in advance!