# Multi-field for \_all

**URL:** <https://discuss.elastic.co/t/multi-field-for--all/89532>\
**Category:** Elasticsearch\
**Created:** [June 15, 2017, 9:22am UTC](https://discuss.elastic.co/t/multi-field-for--all/89532 "2017-06-15T09:22:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shweta-code](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@shweta-code](https://discuss.elastic.co/u/shweta-code)\
**Post date:** [June 15, 2017, 9:22am UTC](https://discuss.elastic.co/t/multi-field-for--all/89532/1 "2017-06-15T09:22:09Z")

</div>

I have a requirement where I want to analyze \_all with different analyzers. So I want to go with multi-filed feature.  
I am not able to . I am getting exception in runtime not while creating mappings:  
! org.elasticsearch.ElasticsearchException: Exception while querying elastic search {"root\_cause":[{"type":"illegal\_argument\_exception","reason":"no mapping found for field [\_all.suggestion\_source]"}],"type":"search\_phase\_execution\_exception","reason":"all shards failed","phase":"query","grouped":true,"failed\_shards":[{"shard":0,"index":"design","node":"naPqjgY6R56KSRg5HjO0LQ","reason":{"type":"illegal\_argument\_exception","reason":"no mapping found for field [\_all.suggestion\_source]"}}],"caused\_by":{"type":"illegal\_argument\_exception","reason":"no mapping found for field [\_all.suggestion\_source]"}}

my mappings :  
"\_all": {  
"type": "string",  
"analyzer": "all\_field\_analyzer",  
"fields": {  
"suggestion\_source": {  
"type": "string",  
"analyzer": "phrase\_suggester\_analyzer"  
}  
}  
}  
If anyone can tell me if this is possible or not because no where it is mentioned explicitly if it can be done or not

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 15, 2017, 12:24pm UTC](https://discuss.elastic.co/t/multi-field-for--all/89532/2 "2017-06-15T12:24:51Z")

</div>

\_all field is going to be removed anyway.

Use for that need the copy\_to feature and copy fields you want to your own my\_all field. Then add any subfield (multi field) you want.

---

<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 13, 2017, 12:25pm UTC](https://discuss.elastic.co/t/multi-field-for--all/89532/3 "2017-07-13T12:25:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
