# Search by equivalent words

**URL:** <https://discuss.elastic.co/t/search-by-equivalent-words/19690>\
**Category:** Elasticsearch\
**Created:** [September 9, 2014, 4:06pm UTC](https://discuss.elastic.co/t/search-by-equivalent-words/19690 "2014-09-09T16:06:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teodor\_Pripoae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teodor_pripoae/32/1295_2.png) [@Teodor\_Pripoae](https://discuss.elastic.co/u/Teodor_Pripoae)\
**Post date:** [September 9, 2014, 4:06pm UTC](https://discuss.elastic.co/t/search-by-equivalent-words/19690/1 "2014-09-09T16:06:08Z")

</div>

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](mailto: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).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [September 9, 2014, 4:35pm UTC](https://discuss.elastic.co/t/search-by-equivalent-words/19690/2 "2014-09-09T16:35:36Z")

</div>

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 -

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Thanks  
Vineeth

On Tue, Sep 9, 2014 at 9:36 PM, Teodor Pripoae [teodor.pripoae@gmail.com](mailto: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](mailto: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)  
> [https://groups.google.com/d/msgid/elasticsearch/062b033b-6135-4e15-98d3-1767444f5006%40googlegroups.com?utm\_medium=email&utm\_source=footer](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](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m24gVULhcPNrjWqQYvKrGkJBLmfAb9fKwMVy49YWWqFw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m24gVULhcPNrjWqQYvKrGkJBLmfAb9fKwMVy49YWWqFw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:03am UTC](https://discuss.elastic.co/t/search-by-equivalent-words/19690/3 "2017-07-06T01:03:35Z")

</div>

Closed on July 6, 2017, 1:03am UTC


