# Synonyms in a query

**URL:** <https://discuss.elastic.co/t/synonyms-in-a-query/16838>\
**Category:** Elasticsearch\
**Created:** [April 7, 2014, 7:29am UTC](https://discuss.elastic.co/t/synonyms-in-a-query/16838 "2014-04-07T07:29:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_K](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Alex\_K](https://discuss.elastic.co/u/Alex_K)\
**Post date:** [April 7, 2014, 7:29am UTC](https://discuss.elastic.co/t/synonyms-in-a-query/16838/1 "2014-04-07T07:29:17Z")

</div>

Hello there,

i have a query, example is this:  
{  
"query": {  
"bool": {  
"should": [  
{  
"multi\_match": {  
"query": "foo",  
"fields": [  
"TITLE",  
"SHORTDESC"  
],  
"type": "phrase\_prefix"  
}  
},  
{  
"multi\_match": {  
"query": "foo",  
"cutoff\_frequency": null,  
"fields": [  
"TITLE",  
"SHORTDESC"  
]  
}  
}  
]  
}  
},  
"filter": {  
"term": {  
"ACTIVE": 1  
}  
},  
"sort": {  
"TITLE": {  
"order": "asc"  
}  
},  
"size": 7  
}

Now I have the question if I can use synonyms here?

I already saw that you can use a synonym-token inside an analyzer.  
But I have a query here, not an analyzer.  
Do I have to put an analyzer inside the query?

I don't know much about ES yet, so this may be a total stupid question.  
Thank you in advance 🙂

--  
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/5fe2d157-b437-4bd8-8a18-8aa4f41f63fe%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5fe2d157-b437-4bd8-8a18-8aa4f41f63fe%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![luizgpsantos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luizgpsantos/32/608_2.png) [@luizgpsantos](https://discuss.elastic.co/u/luizgpsantos)\
**Post date:** [April 7, 2014, 1:02pm UTC](https://discuss.elastic.co/t/synonyms-in-a-query/16838/2 "2014-04-07T13:02:10Z")

</div>

Hi Alex,

If the fields you are searching ("TITLE","SHORTDESC") were indexed using an  
analyzer that declares synonyms the "multi\_match" query will use it. It  
happens because the multi\_match query use the analyzer explicit defined in  
mapping or the default analyzer.[1]

You can explicit declare the analyzer in the query if you want:

POST test/\_search  
{  
"query": {  
"multi\_match": {  
"query": "test",  
"fields": ["title"],  
"analyzer": "standard"  
}  
}  
}

[1]

> **[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.

On Mon, Apr 7, 2014 at 4:29 AM, Alex K [sniper.foxde@googlemail.com](mailto:sniper.foxde@googlemail.com) wrote:

> Hello there,
> 
> i have a query, example is this:  
> {  
> "query": {  
> "bool": {  
> "should": [  
> {  
> "multi\_match": {  
> "query": "foo",  
> "fields": [  
> "TITLE",  
> "SHORTDESC"  
> ],  
> "type": "phrase\_prefix"  
> }  
> },  
> {  
> "multi\_match": {  
> "query": "foo",  
> "cutoff\_frequency": null,  
> "fields": [  
> "TITLE",  
> "SHORTDESC"  
> ]  
> }  
> }  
> ]  
> }  
> },  
> "filter": {  
> "term": {  
> "ACTIVE": 1  
> }  
> },  
> "sort": {  
> "TITLE": {  
> "order": "asc"  
> }  
> },  
> "size": 7  
> }
> 
> Now I have the question if I can use synonyms here?
> 
> I already saw that you can use a synonym-token inside an analyzer.  
> But I have a query here, not an analyzer.  
> Do I have to put an analyzer inside the query?
> 
> I don't know much about ES yet, so this may be a total stupid question.  
> Thank you in advance 🙂
> 
> --  
> 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/5fe2d157-b437-4bd8-8a18-8aa4f41f63fe%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5fe2d157-b437-4bd8-8a18-8aa4f41f63fe%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/5fe2d157-b437-4bd8-8a18-8aa4f41f63fe%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5fe2d157-b437-4bd8-8a18-8aa4f41f63fe%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Luiz Guilherme P. Santos

--  
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/CAMdL%3DZHOw14zbQuROWbam7%3Dd%3DYkSH3K5DJHEzsz73kqdJ0nsUg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZHOw14zbQuROWbam7%3Dd%3DYkSH3K5DJHEzsz73kqdJ0nsUg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Alex\_K](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Alex\_K](https://discuss.elastic.co/u/Alex_K)\
**Post date:** [April 7, 2014, 2:03pm UTC](https://discuss.elastic.co/t/synonyms-in-a-query/16838/3 "2014-04-07T14:03:48Z")

</div>

Hello Luiz, thank you for your reply!

As we use rivers, I was told to declare the analyzer there.  
It looks like this for me:  
{  
"index" : {  
"analysis" : {  
"filter" : {  
"synonym\_filter" : {  
"type" : "synonym",  
"synonyms" : [  
"foo, foo bar =\> core"  
]  
}  
},  
"analyzer" : {  
"synonym" : {  
"tokenizer" : "whitespace",  
"filter" : [  
"synonym\_filter"  
],  
"type" : "custom",  
}  
}  
}  
}  
}  
which acctually says, for testing-purpose, 'if someone searches for 'foo'  
or 'foo bar', search for 'core' '

Now my query uses the analyzer:  
{  
"query": {  
"bool": {  
"should": [  
{  
"multi\_match": {  
"query": "foo",  
"fields": [  
"TITLE",  
"SHORTDESC"  
],  
"type": "phrase\_prefix",  
"analyzer": "synonym"  
}  
},  
{  
"multi\_match": {  
"query": "foo",  
"cutoff\_frequency": null,  
"fields": [  
"TITLE",  
"SHORTDESC"  
]  
}  
}  
]  
}  
},  
"filter": {  
"term": {  
"ACTIVE": 1  
}  
},  
"sort": {  
"TITLE": {  
"order": "asc"  
}  
},  
"size": 7  
}

But I get an error there:  
[...]nested: QueryParsingException[[test484] [multi\_match] analyzer  
[synonym] not found];[...]

What am I doing wrong here?

Am Montag, 7. April 2014 09:29:17 UTC+2 schrieb Alex K:

> Hello there,
> 
> i have a query, example is this:  
> {  
> "query": {  
> "bool": {  
> "should": [  
> {  
> "multi\_match": {  
> "query": "foo",  
> "fields": [  
> "TITLE",  
> "SHORTDESC"  
> ],  
> "type": "phrase\_prefix"  
> }  
> },  
> {  
> "multi\_match": {  
> "query": "foo",  
> "cutoff\_frequency": null,  
> "fields": [  
> "TITLE",  
> "SHORTDESC"  
> ]  
> }  
> }  
> ]  
> }  
> },  
> "filter": {  
> "term": {  
> "ACTIVE": 1  
> }  
> },  
> "sort": {  
> "TITLE": {  
> "order": "asc"  
> }  
> },  
> "size": 7  
> }
> 
> Now I have the question if I can use synonyms here?
> 
> I already saw that you can use a synonym-token inside an analyzer.  
> But I have a query here, not an analyzer.  
> Do I have to put an analyzer inside the query?
> 
> I don't know much about ES yet, so this may be a total stupid question.  
> Thank you in advance 🙂

--  
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/3ec9e97d-f210-4a88-a269-f6306bf0266c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3ec9e97d-f210-4a88-a269-f6306bf0266c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![luizgpsantos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luizgpsantos/32/608_2.png) [@luizgpsantos](https://discuss.elastic.co/u/luizgpsantos)\
**Post date:** [April 8, 2014, 12:37am UTC](https://discuss.elastic.co/t/synonyms-in-a-query/16838/4 "2014-04-08T00:37:02Z")

</div>

Hi Alex,

First create your index with the synonym filter:

curl -XPUT 'localhost:9200/myindex/' -d '{  
"settings": {  
"index": {  
"analysis": {  
"filter": {  
"synonym\_filter": {  
"type": "synonym",  
"synonyms": [  
"foo, foo bar =\> core"  
]  
}  
},  
"analyzer": {  
"synonym": {  
"tokenizer": "whitespace",  
"filter": [  
"synonym\_filter"  
],  
"type": "custom"  
}  
}  
}  
}  
}  
}'

After index one document with the title equals do "core":

curl -XPOST 'localhost:9200/myindex/test/1' -d '{  
"title": "core"  
}'

Then search for "foo":

curl -XPOST localhost:1980/myindex/\_search -d '{  
"query": {  
"multi\_match": {  
"query": "foo",  
"fields": [  
"title"  
],  
"type": "phrase\_prefix",  
"analyzer": "synonym"  
}  
}  
}'

The response is the previous indexed document:  
{  
"took": 1,  
"timed\_out": false,  
"\_shards": {  
"total": 1,  
"successful": 1,  
"failed": 0  
},  
"hits": {  
"total": 1,  
"max\_score": 0.30685282,  
"hits": [  
{  
"\_index": "myindex",  
"\_type": "test",  
"\_id": "1",  
"\_score": 0.30685282,  
"\_source": {  
"title": "core"  
}  
}  
]  
}  
}

On Mon, Apr 7, 2014 at 11:03 AM, Alex K [sniper.foxde@googlemail.com](mailto:sniper.foxde@googlemail.com) wrote:

> Hello Luiz, thank you for your reply!
> 
> As we use rivers, I was told to declare the analyzer there.  
> It looks like this for me:  
> {  
> "index" : {  
> "analysis" : {  
> "filter" : {  
> "synonym\_filter" : {  
> "type" : "synonym",  
> "synonyms" : [  
> "foo, foo bar =\> core"  
> ]  
> }  
> },  
> "analyzer" : {  
> "synonym" : {  
> "tokenizer" : "whitespace",  
> "filter" : [  
> "synonym\_filter"  
> ],  
> "type" : "custom",  
> }  
> }  
> }  
> }  
> }  
> which acctually says, for testing-purpose, 'if someone searches for 'foo'  
> or 'foo bar', search for 'core' '
> 
> Now my query uses the analyzer:  
> {  
> "query": {  
> "bool": {  
> "should": [  
> {  
> "multi\_match": {  
> "query": "foo",  
> "fields": [  
> "TITLE",  
> "SHORTDESC"  
> ],  
> "type": "phrase\_prefix",
> 
> ```
> "analyzer": "synonym"
> 
> }
> },
> {
> "multi_match": {
> "query": "foo",
> "cutoff_frequency": null,
> "fields": [
> "TITLE",
> "SHORTDESC"
> ]
> }
> }
> ]
> }
> },
> "filter": {
> "term": {
> "ACTIVE": 1
> }
> },
> "sort": {
> "TITLE": {
> "order": "asc"
> }
> },
> "size": 7
> 
> ```
> 
> }
> 
> But I get an error there:  
> [...]nested: QueryParsingException[[test484] [multi\_match] analyzer  
> [synonym] not found];[...]
> 
> What am I doing wrong here?
> 
> Am Montag, 7. April 2014 09:29:17 UTC+2 schrieb Alex K:
> 
> > Hello there,
> > 
> > i have a query, example is this:  
> > {  
> > "query": {  
> > "bool": {  
> > "should": [  
> > {  
> > "multi\_match": {  
> > "query": "foo",  
> > "fields": [  
> > "TITLE",  
> > "SHORTDESC"  
> > ],  
> > "type": "phrase\_prefix"  
> > }  
> > },  
> > {  
> > "multi\_match": {  
> > "query": "foo",  
> > "cutoff\_frequency": null,  
> > "fields": [  
> > "TITLE",  
> > "SHORTDESC"  
> > ]  
> > }  
> > }  
> > ]  
> > }  
> > },  
> > "filter": {  
> > "term": {  
> > "ACTIVE": 1  
> > }  
> > },  
> > "sort": {  
> > "TITLE": {  
> > "order": "asc"  
> > }  
> > },  
> > "size": 7  
> > }
> > 
> > Now I have the question if I can use synonyms here?
> > 
> > I already saw that you can use a synonym-token inside an analyzer.  
> > But I have a query here, not an analyzer.  
> > Do I have to put an analyzer inside the query?
> > 
> > I don't know much about ES yet, so this may be a total stupid question.  
> > Thank you in advance 🙂
> 
> --  
> 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/3ec9e97d-f210-4a88-a269-f6306bf0266c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3ec9e97d-f210-4a88-a269-f6306bf0266c%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/3ec9e97d-f210-4a88-a269-f6306bf0266c%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3ec9e97d-f210-4a88-a269-f6306bf0266c%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Luiz Guilherme P. Santos

--  
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/CAMdL%3DZG3sZzwM7CrXC%2BQrXu93vJuiPBL%3DW5UfYkkDXhGDpCOnA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMdL%3DZG3sZzwM7CrXC%2BQrXu93vJuiPBL%3DW5UfYkkDXhGDpCOnA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Alex\_K](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Alex\_K](https://discuss.elastic.co/u/Alex_K)\
**Post date:** [April 8, 2014, 6:45am UTC](https://discuss.elastic.co/t/synonyms-in-a-query/16838/5 "2014-04-08T06:45:59Z")

</div>

Hi Luiz,

thank you again for your reply.

I don't fully understand the part you mentioned:

After index one document with the title equals do "core":

> curl -XPOST 'localhost:9200/myindex/test/1' -d '{  
> "title": "core"  
> }'

Sorry, I am pretty new to ES and haven't understand pretty much.

Now what happens there?  
And what if I don't have hardcoded synonyms, but a file which someone can  
fill out.  
I need something like

"synonyms\_path" : "analysis/synonym.txt"

> in my filter, but then what about the setp you mentioned that I did not  
> understand?

Sorry for all the trouble

Am Montag, 7. April 2014 09:29:17 UTC+2 schrieb Alex K:

> Hello there,
> 
> i have a query, example is this:  
> {  
> "query": {  
> "bool": {  
> "should": [  
> {  
> "multi\_match": {  
> "query": "foo",  
> "fields": [  
> "TITLE",  
> "SHORTDESC"  
> ],  
> "type": "phrase\_prefix"  
> }  
> },  
> {  
> "multi\_match": {  
> "query": "foo",  
> "cutoff\_frequency": null,  
> "fields": [  
> "TITLE",  
> "SHORTDESC"  
> ]  
> }  
> }  
> ]  
> }  
> },  
> "filter": {  
> "term": {  
> "ACTIVE": 1  
> }  
> },  
> "sort": {  
> "TITLE": {  
> "order": "asc"  
> }  
> },  
> "size": 7  
> }
> 
> Now I have the question if I can use synonyms here?
> 
> I already saw that you can use a synonym-token inside an analyzer.  
> But I have a query here, not an analyzer.  
> Do I have to put an analyzer inside the query?
> 
> I don't know much about ES yet, so this may be a total stupid question.  
> Thank you in advance 🙂

--  
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/637c5a0a-89cc-47d3-9f59-785ddf6ccfc3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/637c5a0a-89cc-47d3-9f59-785ddf6ccfc3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Alex\_K](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Alex\_K](https://discuss.elastic.co/u/Alex_K)\
**Post date:** [April 8, 2014, 9:13am UTC](https://discuss.elastic.co/t/synonyms-in-a-query/16838/6 "2014-04-08T09:13:27Z")

</div>

Hi Luiz,

thank you again for your reply.

A colleague of mine told me that I might miss a plugin to use my  
settings-file.  
I will check this out and later write down here what I found out.

Sorry for all the trouble

Am Montag, 7. April 2014 09:29:17 UTC+2 schrieb Alex K:

> Hello there,
> 
> i have a query, example is this:  
> {  
> "query": {  
> "bool": {  
> "should": [  
> {  
> "multi\_match": {  
> "query": "foo",  
> "fields": [  
> "TITLE",  
> "SHORTDESC"  
> ],  
> "type": "phrase\_prefix"  
> }  
> },  
> {  
> "multi\_match": {  
> "query": "foo",  
> "cutoff\_frequency": null,  
> "fields": [  
> "TITLE",  
> "SHORTDESC"  
> ]  
> }  
> }  
> ]  
> }  
> },  
> "filter": {  
> "term": {  
> "ACTIVE": 1  
> }  
> },  
> "sort": {  
> "TITLE": {  
> "order": "asc"  
> }  
> },  
> "size": 7  
> }
> 
> Now I have the question if I can use synonyms here?
> 
> I already saw that you can use a synonym-token inside an analyzer.  
> But I have a query here, not an analyzer.  
> Do I have to put an analyzer inside the query?
> 
> I don't know much about ES yet, so this may be a total stupid question.  
> Thank you in advance 🙂

--  
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/ba838067-1277-4db9-a8f9-e306d47d6591%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ba838067-1277-4db9-a8f9-e306d47d6591%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Alex\_K](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Alex\_K](https://discuss.elastic.co/u/Alex_K)\
**Post date:** [April 8, 2014, 11:02am UTC](https://discuss.elastic.co/t/synonyms-in-a-query/16838/7 "2014-04-08T11:02:21Z")

</div>

Me again,

seems it was a local problem for me.  
The way Luiz mentioned is the exact correct way.  
Thank you very much, Luiz!!!!  
You helped me really out of this!

Am Montag, 7. April 2014 09:29:17 UTC+2 schrieb Alex K:

> Hello there,
> 
> i have a query, example is this:  
> {  
> "query": {  
> "bool": {  
> "should": [  
> {  
> "multi\_match": {  
> "query": "foo",  
> "fields": [  
> "TITLE",  
> "SHORTDESC"  
> ],  
> "type": "phrase\_prefix"  
> }  
> },  
> {  
> "multi\_match": {  
> "query": "foo",  
> "cutoff\_frequency": null,  
> "fields": [  
> "TITLE",  
> "SHORTDESC"  
> ]  
> }  
> }  
> ]  
> }  
> },  
> "filter": {  
> "term": {  
> "ACTIVE": 1  
> }  
> },  
> "sort": {  
> "TITLE": {  
> "order": "asc"  
> }  
> },  
> "size": 7  
> }
> 
> Now I have the question if I can use synonyms here?
> 
> I already saw that you can use a synonym-token inside an analyzer.  
> But I have a query here, not an analyzer.  
> Do I have to put an analyzer inside the query?
> 
> I don't know much about ES yet, so this may be a total stupid question.  
> Thank you in advance 🙂

--  
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/7a1878b4-6c79-42a3-b0d7-5562d0cbdece%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7a1878b4-6c79-42a3-b0d7-5562d0cbdece%40googlegroups.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:37am UTC](https://discuss.elastic.co/t/synonyms-in-a-query/16838/8 "2017-07-06T01:37:34Z")

</div>


