# Searching trought multi\_field type fields

**URL:** <https://discuss.elastic.co/t/searching-trought-multi-field-type-fields/31757>\
**Category:** Kibana\
**Created:** [October 7, 2015, 8:33am UTC](https://discuss.elastic.co/t/searching-trought-multi-field-type-fields/31757 "2015-10-07T08:33:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kruelah](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@kruelah](https://discuss.elastic.co/u/kruelah)\
**Post date:** [October 7, 2015, 8:33am UTC](https://discuss.elastic.co/t/searching-trought-multi-field-type-fields/31757/1 "2015-10-07T08:33:26Z")

</div>

Hi all,

I added a field called ACT\_DEPARTMENT in my Elasticsearch index.  
The field may contains values like "foo", "bar", "foo bar".  
I want to be abble to search "foo", and I want to be abble to display "foo bar" in my results tab or chart as a field values as well.

I use the following mapping definition :

```
"ACT_DEPARTMENT" : { "type" : "multi_field", "fields" : { "INDEXED": {"type": "string"}, "ORIGINAL": {"type" : "string", "index" : "not_analyzed"} } }

```

In Kibana Discovery tab I can't filter my results on "foo bar" value. I checked "Hide Missing Fields" option and picked ACT\_DEPARTMENT.ORIGINAL and ACT\_DEPARTMENT.INDEXED fields but both display a message when I expand them :

_\> This field is present in your elasticsearch mapping but not in any documents in the search results. You may still be able to visualize or search on it._

A third field called ACT\_DEPARTMENT is also available but I can't use it to filter my datas. The + and - icons are unavailable.

Could you please help me to solve my problem?

---

<div class="post-metadata">

**Author:** ![kruelah](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@kruelah](https://discuss.elastic.co/u/kruelah)\
**Post date:** [October 7, 2015, 10:20am UTC](https://discuss.elastic.co/t/searching-trought-multi-field-type-fields/31757/2 "2015-10-07T10:20:43Z")

</div>

I used a different mapping as said in documentation :

"ACT\_DEPARTEMENT" : { "type" : "string", "fields" : { "RAW": {"type" : "string", "index" : "not\_analyzed"} } },

Now I'm abble to do a fulltext search on the field and use it to aggregate.

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [October 10, 2015, 2:59pm UTC](https://discuss.elastic.co/t/searching-trought-multi-field-type-fields/31757/3 "2015-10-10T14:59:04Z")

</div>

Thanks for posting the resolution!

---

<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, 2:11pm UTC](https://discuss.elastic.co/t/searching-trought-multi-field-type-fields/31757/4 "2017-07-06T14:11:37Z")

</div>


