# Elasticsearch can get field name and matchquery for no store field？

**URL:** <https://discuss.elastic.co/t/elasticsearch-can-get-field-name-and-matchquery-for-no-store-field/68014>\
**Category:** Elasticsearch\
**Created:** [December 5, 2016, 9:49am UTC](https://discuss.elastic.co/t/elasticsearch-can-get-field-name-and-matchquery-for-no-store-field/68014 "2016-12-05T09:49:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![libenyang](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@libenyang](https://discuss.elastic.co/u/libenyang)\
**Post date:** [December 5, 2016, 9:49am UTC](https://discuss.elastic.co/t/elasticsearch-can-get-field-name-and-matchquery-for-no-store-field/68014/1 "2016-12-05T09:49:18Z")

</div>

I used elasticsearch for multi fields searche,in order to faster search speed is not established field store, so I could not get the matching field name and matches query, which is very useful for multi fields matching searches.  
Moreover, it seems that these two information can be obtained on the no-store fields,Why not support that？

---

<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:** [December 5, 2016, 10:02am UTC](https://discuss.elastic.co/t/elasticsearch-can-get-field-name-and-matchquery-for-no-store-field/68014/2 "2016-12-05T10:02:40Z")

</div>

Hey,

I do not understand, what this has to do with stored fields and faster search. Can you elaborate or come up with an example?

If you need to find out, which query matched, you need to use [named queries](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/search-request-named-queries-and-filters.html)

--Alex

---

<div class="post-metadata">

**Author:** ![libenyang](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@libenyang](https://discuss.elastic.co/u/libenyang)\
**Post date:** [December 6, 2016, 2:07am UTC](https://discuss.elastic.co/t/elasticsearch-can-get-field-name-and-matchquery-for-no-store-field/68014/3 "2016-12-06T02:07:07Z")

</div>

thanks for the suggest，  
for example， I have hundreds of fields，I used Prefix s\_ for all fields,so I can use multi-match with s\_\* to matchs all the fields.  
I use other database store the data，to get data faster and search faster，and some time I need search and get data in diffrent time， so I don't store the fields .  
I wan't to find fileld which is matched and what query is matched ,it seems that named queries is useless.

---

<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:** [January 3, 2017, 2:07am UTC](https://discuss.elastic.co/t/elasticsearch-can-get-field-name-and-matchquery-for-no-store-field/68014/4 "2017-01-03T02:07:17Z")

</div>

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