I have an ES index where I store companies indexed by name. Is there any
way so I can search by similar words ?
For example I have the name "Discount Pets & Supplies" and I want to also
be able to query like "Discount Pets and Supplies", so basically I'm asking
if there is a way to mark "&" as equivalent to "and".
The direction you are heading is of the synonym analyzer.
You can declare your synonym set as & => and and set it as a synonym token
filter.
What this means is that , while indexing , if its sees & , it will register
"and" also against that position.
I have an ES index where I store companies indexed by name. Is there any
way so I can search by similar words ?
For example I have the name "Discount Pets & Supplies" and I want to also
be able to query like "Discount Pets and Supplies", so basically I'm asking
if there is a way to mark "&" as equivalent to "and".
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.