# How to \_suggest on multiple fields in elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-to--suggest-on-multiple-fields-in-elasticsearch/9670>\
**Category:** Elasticsearch\
**Created:** [November 12, 2012, 11:28am UTC](https://discuss.elastic.co/t/how-to--suggest-on-multiple-fields-in-elasticsearch/9670 "2012-11-12T11:28:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prakhar\_Goel](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Prakhar\_Goel](https://discuss.elastic.co/u/Prakhar_Goel)\
**Post date:** [November 12, 2012, 11:28am UTC](https://discuss.elastic.co/t/how-to--suggest-on-multiple-fields-in-elasticsearch/9670/1 "2012-11-12T11:28:51Z")

</div>

To spell check / suggest one single field, we can do as follows:

curl -XPOST localhost:9200/index/type/\_suggest -d '{  
"field": "MY\_FIELD1.suggest",  
"term": "wrongly\_spelled\_word",  
"similarity": 0.3 }'

But how do we do the same thing on several fields like MY\_FIELD1,  
MY\_FIELD2  
etc. I tried

"fields": ["MY\_FIELD1.suggest", "MY\_FIELD2.suggest"]

etc, but it was not working.

--

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [November 12, 2012, 6:12pm UTC](https://discuss.elastic.co/t/how-to--suggest-on-multiple-fields-in-elasticsearch/9670/2 "2012-11-12T18:12:15Z")

</div>

Hi

On Mon, Nov 12, 2012 at 12:28 PM, Prakhar Goel [i@prakhargoel.com](mailto:i@prakhargoel.com) wrote:

> To spell check / suggest one single field, we can do as follows:
> 
> curl -XPOST localhost:9200/index/type/\_suggest -d '{  
> "field": "MY\_FIELD1.suggest",  
> "term": "wrongly\_spelled\_word",  
> "similarity": 0.3 }'
> 
> But how do we do the same thing on several fields like MY\_FIELD1,  
> MY\_FIELD2  
> etc. I tried
> 
> "fields": ["MY\_FIELD1.suggest", "MY\_FIELD2.suggest"]  
> Querying multiple fields with one query is not supported (and there is  
> no plan to do that - your usecase can easily be achieved, see below)

Just issue multiple requests... if you issue them async you wont have  
a much bigger delay than before.  
As an alternative you could setup your \_all field appropriately and  
query this one.

--Alexander

--

---

<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, 3:04am UTC](https://discuss.elastic.co/t/how-to--suggest-on-multiple-fields-in-elasticsearch/9670/3 "2017-07-06T03:04:43Z")

</div>


