Search by equivalent words


(Teodor Pripoae) #1

Hi,

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".

Thank you,
Teodor

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/062b033b-6135-4e15-98d3-1767444f5006%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(vineeth mohan-2) #2

Hello ,

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.

SYNONYM TOKEN FILTER -
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-synonym-tokenfilter.html#analysis-synonym-tokenfilter

Thanks
Vineeth

On Tue, Sep 9, 2014 at 9:36 PM, Teodor Pripoae teodor.pripoae@gmail.com
wrote:

Hi,

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".

Thank you,
Teodor

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/062b033b-6135-4e15-98d3-1767444f5006%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/062b033b-6135-4e15-98d3-1767444f5006%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m24gVULhcPNrjWqQYvKrGkJBLmfAb9fKwMVy49YWWqFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3