# Searhch Request

**URL:** <https://discuss.elastic.co/t/searhch-request/16578>\
**Category:** Elasticsearch\
**Created:** [March 25, 2014, 6:37am UTC](https://discuss.elastic.co/t/searhch-request/16578 "2014-03-25T06:37:41Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Praveenkumar\_Arepall](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@Praveenkumar\_Arepall](https://discuss.elastic.co/u/Praveenkumar_Arepall)\
**Post date:** [March 25, 2014, 6:37am UTC](https://discuss.elastic.co/t/searhch-request/16578/1 "2014-03-25T06:37:41Z")

</div>

Hi Team, I have little knowledge in elasticsearch but i cannot satisfied  
with what have know.i want to enhance my knowledge.  
Here is the question 1.How to know which field is matched in indexed  
document while fetching from Index?  
Ex: structure of document in index

Document #1 { "name" : "praveen kumar", "Company" : "praveen Tech",  
"email" : "praveen@gmail.com", "phone" : "1234567890" }  
Document #2 { "name" : "joseph", "company": "praveen Tech" }

--  
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/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [March 25, 2014, 6:59am UTC](https://discuss.elastic.co/t/searhch-request/16578/2 "2014-03-25T06:59:09Z")

</div>

May be using explain option.

But question is more "why a user would like knowing that?"  
Could you describe a little more your use case and what you are trying to achieve?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com) a écrit :

Hi Team, I have little knowledge in elasticsearch but i cannot satisfied with what have know.i want to enhance my knowledge.  
Here is the question 1.How to know which field is matched in indexed document while fetching from Index?  
Ex: structure of document in index

## Document #1 { "name" : "praveen kumar", "Company" : "praveen Tech", "email" : "praveen@gmail.com", "phone" : "1234567890" } Document #2 { "name" : "joseph", "company": "praveen Tech" }

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/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Praveenkumar\_Arepall](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@Praveenkumar\_Arepall](https://discuss.elastic.co/u/Praveenkumar_Arepall)\
**Post date:** [March 25, 2014, 7:07am UTC](https://discuss.elastic.co/t/searhch-request/16578/3 "2014-03-25T07:07:16Z")

</div>

Hi David,  
A record have 40 fields  
if the each field has same word in it then as a developer I want know  
which field is matched

Ex:  
{  
"name" : "joseph",  
"phoneNumber" : "joseph 123",  
"emailId" : "joseph 234",  
"address" : "joseph street",  
.....

}  
like this 40 fields

i am using matchQuery to get results back.

My searchText will be "joseph"

it is returning results but eagerly waiting to know field is matched.

On Tue, Mar 25, 2014 at 12:29 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> May be using explain option.
> 
> But question is more "why a user would like knowing that?"  
> Could you describe a little more your use case and what you are trying to  
> achieve?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 25 mars 2014 à 07:37, Praveenkumar Arepalli \<  
> [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> 
> Hi Team, I have little knowledge in elasticsearch but i cannot satisfied  
> with what have know.i want to enhance my knowledge.  
> Here is the question 1.How to know which field is matched in indexed  
> document while fetching from Index?  
> Ex: structure of document in index
> 
> Document #1 { "name" : "praveen kumar", "Company" : "praveen  
> Tech", "email" : "praveen@gmail.com", "phone" : "1234567890" }  
> Document #2 { "name" : "joseph", "company": "praveen Tech" }
> 
> --  
> 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/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Thanks & Regards:  
Praveenkumar Arepalli

--  
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/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [March 25, 2014, 7:14am UTC](https://discuss.elastic.co/t/searhch-request/16578/4 "2014-03-25T07:14:09Z")

</div>

I understand that you as a developer want to know it.  
My question is what are you going to do with that information?

If it's for debugging purpose then explain is fine.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 08:07, Praveenkumar Arepalli [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com) a écrit :

Hi David,  
A record have 40 fields  
if the each field has same word in it then as a developer I want know which field is matched

Ex:  
{  
"name" : "joseph",  
"phoneNumber" : "joseph 123",  
"emailId" : "joseph 234",  
"address" : "joseph street",  
.....

}  
like this 40 fields

i am using matchQuery to get results back.

My searchText will be "joseph"

it is returning results but eagerly waiting to know field is matched.

> On Tue, Mar 25, 2014 at 12:29 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> May be using explain option.
> 
> But question is more "why a user would like knowing that?"  
> Could you describe a little more your use case and what you are trying to achieve?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 25 mars 2014 à 07:37, Praveenkumar Arepalli [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com) a écrit :
> 
> Hi Team, I have little knowledge in elasticsearch but i cannot satisfied with what have know.i want to enhance my knowledge.  
> Here is the question 1.How to know which field is matched in indexed document while fetching from Index?  
> Ex: structure of document in index
> 
> ## Document #1 { "name" : "praveen kumar", "Company" : "praveen Tech", "email" : "praveen@gmail.com", "phone" : "1234567890" } Document #2 { "name" : "joseph", "company": "praveen Tech" }
> 
> 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/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com). For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr).
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

## -- Thanks & Regards: Praveenkumar Arepalli

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/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Praveenkumar\_Arepall](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@Praveenkumar\_Arepall](https://discuss.elastic.co/u/Praveenkumar_Arepall)\
**Post date:** [March 25, 2014, 7:18am UTC](https://discuss.elastic.co/t/searhch-request/16578/5 "2014-03-25T07:18:32Z")

</div>

How to use explain David?

On Tue, Mar 25, 2014 at 12:44 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> I understand that you as a developer want to know it.  
> My question is what are you going to do with that information?
> 
> If it's for debugging purpose then explain is fine.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 25 mars 2014 à 08:07, Praveenkumar Arepalli \<  
> [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> 
> Hi David,  
> A record have 40 fields  
> if the each field has same word in it then as a developer I want know  
> which field is matched
> 
> Ex:  
> {  
> "name" : "joseph",  
> "phoneNumber" : "joseph 123",  
> "emailId" : "joseph 234",  
> "address" : "joseph street",  
> .....
> 
> }  
> like this 40 fields
> 
> i am using matchQuery to get results back.
> 
> My searchText will be "joseph"
> 
> it is returning results but eagerly waiting to know field is matched.
> 
> On Tue, Mar 25, 2014 at 12:29 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > May be using explain option.
> > 
> > But question is more "why a user would like knowing that?"  
> > Could you describe a little more your use case and what you are trying to  
> > achieve?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 25 mars 2014 à 07:37, Praveenkumar Arepalli \<  
> > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > 
> > Hi Team, I have little knowledge in elasticsearch but i cannot satisfied  
> > with what have know.i want to enhance my knowledge.  
> > Here is the question 1.How to know which field is matched in indexed  
> > document while fetching from Index?  
> > Ex: structure of document in index
> > 
> > Document #1 { "name" : "praveen kumar", "Company" : "praveen  
> > Tech", "email" : "praveen@gmail.com", "phone" : "1234567890" }  
> > Document #2 { "name" : "joseph", "company": "praveen Tech" }
> > 
> > --  
> > 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/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Thanks & Regards:  
> Praveenkumar Arepalli
> 
> --  
> 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/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Thanks & Regards:  
Praveenkumar Arepalli

--  
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/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [March 25, 2014, 7:22am UTC](https://discuss.elastic.co/t/searhch-request/16578/6 "2014-03-25T07:22:16Z")

</div>

> **[Elastic — The Search AI Company](https://www.elastic.co)**
>
> Power insights and outcomes with The Elastic Search AI Platform. See into your data and find answers that matter with enterprise solutions designed to help you accelerate time to insight. Try Elastic ...

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 08:18, Praveenkumar Arepalli [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com) a écrit :

How to use explain David?

> On Tue, Mar 25, 2014 at 12:44 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> I understand that you as a developer want to know it.  
> My question is what are you going to do with that information?
> 
> If it's for debugging purpose then explain is fine.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 25 mars 2014 à 08:07, Praveenkumar Arepalli [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com) a écrit :
> 
> Hi David,  
> A record have 40 fields  
> if the each field has same word in it then as a developer I want know which field is matched
> 
> Ex:  
> {  
> "name" : "joseph",  
> "phoneNumber" : "joseph 123",  
> "emailId" : "joseph 234",  
> "address" : "joseph street",  
> .....
> 
> }  
> like this 40 fields
> 
> i am using matchQuery to get results back.
> 
> My searchText will be "joseph"
> 
> it is returning results but eagerly waiting to know field is matched.
> 
> > On Tue, Mar 25, 2014 at 12:29 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > May be using explain option.
> > 
> > But question is more "why a user would like knowing that?"  
> > Could you describe a little more your use case and what you are trying to achieve?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 25 mars 2014 à 07:37, Praveenkumar Arepalli [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com) a écrit :
> > 
> > Hi Team, I have little knowledge in elasticsearch but i cannot satisfied with what have know.i want to enhance my knowledge.  
> > Here is the question 1.How to know which field is matched in indexed document while fetching from Index?  
> > Ex: structure of document in index
> > 
> > ## Document #1 { "name" : "praveen kumar", "Company" : "praveen Tech", "email" : "praveen@gmail.com", "phone" : "1234567890" } Document #2 { "name" : "joseph", "company": "praveen Tech" }
> > 
> > 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/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com). For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr).
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> ## -- Thanks & Regards: Praveenkumar Arepalli
> 
> 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/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com).
> 
> ## For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr).
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

## -- Thanks & Regards: Praveenkumar Arepalli

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/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Praveenkumar\_Arepall](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@Praveenkumar\_Arepall](https://discuss.elastic.co/u/Praveenkumar_Arepall)\
**Post date:** [March 25, 2014, 7:24am UTC](https://discuss.elastic.co/t/searhch-request/16578/7 "2014-03-25T07:24:46Z")

</div>

Your help is appreciated.

On Tue, Mar 25, 2014 at 12:52 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain)
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 25 mars 2014 à 08:18, Praveenkumar Arepalli \<  
> [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> 
> How to use explain David?
> 
> On Tue, Mar 25, 2014 at 12:44 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > I understand that you as a developer want to know it.  
> > My question is what are you going to do with that information?
> > 
> > If it's for debugging purpose then explain is fine.
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 25 mars 2014 à 08:07, Praveenkumar Arepalli \<  
> > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > 
> > Hi David,  
> > A record have 40 fields  
> > if the each field has same word in it then as a developer I want know  
> > which field is matched
> > 
> > Ex:  
> > {  
> > "name" : "joseph",  
> > "phoneNumber" : "joseph 123",  
> > "emailId" : "joseph 234",  
> > "address" : "joseph street",  
> > .....
> > 
> > }  
> > like this 40 fields
> > 
> > i am using matchQuery to get results back.
> > 
> > My searchText will be "joseph"
> > 
> > it is returning results but eagerly waiting to know field is matched.
> > 
> > On Tue, Mar 25, 2014 at 12:29 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > May be using explain option.
> > > 
> > > But question is more "why a user would like knowing that?"  
> > > Could you describe a little more your use case and what you are trying  
> > > to achieve?
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 25 mars 2014 à 07:37, Praveenkumar Arepalli \<  
> > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > > 
> > > Hi Team, I have little knowledge in elasticsearch but i cannot satisfied  
> > > with what have know.i want to enhance my knowledge.  
> > > Here is the question 1.How to know which field is matched in indexed  
> > > document while fetching from Index?  
> > > Ex: structure of document in index
> > > 
> > > Document #1 { "name" : "praveen kumar", "Company" : "praveen  
> > > Tech", "email" : "praveen@gmail.com", "phone" : "1234567890" }  
> > > Document #2 { "name" : "joseph", "company": "praveen Tech" }
> > > 
> > > --  
> > > 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/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> > > To unsubscribe from this group and all its topics, 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/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > Thanks & Regards:  
> > Praveenkumar Arepalli
> > 
> > --  
> > 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/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Thanks & Regards:  
> Praveenkumar Arepalli
> 
> --  
> 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/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Thanks & Regards:  
Praveenkumar Arepalli

--  
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/CACuc-K%3D2bz-%2B0Lj7n8\_WjExCxMEkr3VrtEZ\_LFyU3xcxOxdNog%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3D2bz-%2B0Lj7n8_WjExCxMEkr3VrtEZ_LFyU3xcxOxdNog%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Praveenkumar\_Arepall](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@Praveenkumar\_Arepall](https://discuss.elastic.co/u/Praveenkumar_Arepall)\
**Post date:** [March 25, 2014, 7:29am UTC](https://discuss.elastic.co/t/searhch-request/16578/8 "2014-03-25T07:29:10Z")

</div>

"companyName" : {  
"type" : "multi\_field",  
"fields" : {  
"companyName" : {  
"type" : "string",  
"analyzer" : "apptivo\_whitespace\_wdf\_lcf\_analyzer"  
},  
"sortable" : {  
"type" : "string",  
"analyzer" : "apptivo\_sort\_analyzer",  
"include\_in\_all" : false  
},  
"untouched" : {  
"type" : "string",  
"index" : "not\_analyzed",  
"norms" : {  
"enabled" : false  
},  
"index\_options" : "docs",  
"include\_in\_all" : false  
}  
}  
}

When i am searching in compantName field  
nested: IllegalStateException[field "companyName" was indexed without  
position data; cannot run PhraseQuery (term=spectrum)]; }

How to resolve this ?

On Tue, Mar 25, 2014 at 12:54 PM, Praveenkumar Arepalli \<  
[arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> wrote:

> Your help is appreciated.
> 
> On Tue, Mar 25, 2014 at 12:52 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain)
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 25 mars 2014 à 08:18, Praveenkumar Arepalli \<  
> > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > 
> > How to use explain David?
> > 
> > On Tue, Mar 25, 2014 at 12:44 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > I understand that you as a developer want to know it.  
> > > My question is what are you going to do with that information?
> > > 
> > > If it's for debugging purpose then explain is fine.
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 25 mars 2014 à 08:07, Praveenkumar Arepalli \<  
> > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > > 
> > > Hi David,  
> > > A record have 40 fields  
> > > if the each field has same word in it then as a developer I want know  
> > > which field is matched
> > > 
> > > Ex:  
> > > {  
> > > "name" : "joseph",  
> > > "phoneNumber" : "joseph 123",  
> > > "emailId" : "joseph 234",  
> > > "address" : "joseph street",  
> > > .....
> > > 
> > > }  
> > > like this 40 fields
> > > 
> > > i am using matchQuery to get results back.
> > > 
> > > My searchText will be "joseph"
> > > 
> > > it is returning results but eagerly waiting to know field is matched.
> > > 
> > > On Tue, Mar 25, 2014 at 12:29 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > May be using explain option.
> > > > 
> > > > But question is more "why a user would like knowing that?"  
> > > > Could you describe a little more your use case and what you are trying  
> > > > to achieve?
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 25 mars 2014 à 07:37, Praveenkumar Arepalli \<  
> > > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > > > 
> > > > Hi Team, I have little knowledge in elasticsearch but i cannot  
> > > > satisfied with what have know.i want to enhance my knowledge.  
> > > > Here is the question 1.How to know which field is matched in indexed  
> > > > document while fetching from Index?  
> > > > Ex: structure of document in index
> > > > 
> > > > Document #1 { "name" : "praveen kumar", "Company" : "praveen  
> > > > Tech", "email" : "praveen@gmail.com", "phone" : "1234567890" }  
> > > > Document #2 { "name" : "joseph", "company": "praveen Tech" }
> > > > 
> > > > --  
> > > > 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/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to a topic in the  
> > > > Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit  
> > > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe)  
> > > > .  
> > > > To unsubscribe from this group and all its topics, 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/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > Thanks & Regards:  
> > > Praveenkumar Arepalli
> > > 
> > > --  
> > > 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/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> > > To unsubscribe from this group and all its topics, 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/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > Thanks & Regards:  
> > Praveenkumar Arepalli
> > 
> > --  
> > 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/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Thanks & Regards:  
> Praveenkumar Arepalli

--  
Thanks & Regards:  
Praveenkumar Arepalli

--  
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/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![mkleen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mkleen/32/1694_2.png) [@mkleen](https://discuss.elastic.co/u/mkleen)\
**Post date:** [March 25, 2014, 8:03am UTC](https://discuss.elastic.co/t/searhch-request/16578/9 "2014-03-25T08:03:48Z")

</div>

Hi Praveenkumar,

what is your index layout, your input data and what is your query request ?  
Can you post your setup as a working example using curls similiar to  
[https://gist.github.com/mkleen/4739479](https://gist.github.com/mkleen/4739479) ? In this way its easy to help you  
here.

Regards,

Michael

On 25 March 2014 08:29, Praveenkumar Arepalli \<  
[arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> wrote:

> "companyName" : {  
> "type" : "multi\_field",  
> "fields" : {  
> "companyName" : {  
> "type" : "string",  
> "analyzer" : "apptivo\_whitespace\_wdf\_lcf\_analyzer"  
> },  
> "sortable" : {  
> "type" : "string",  
> "analyzer" : "apptivo\_sort\_analyzer",  
> "include\_in\_all" : false  
> },  
> "untouched" : {  
> "type" : "string",  
> "index" : "not\_analyzed",  
> "norms" : {  
> "enabled" : false  
> },  
> "index\_options" : "docs",  
> "include\_in\_all" : false  
> }  
> }  
> }
> 
> When i am searching in compantName field  
> nested: IllegalStateException[field "companyName" was indexed without position data; cannot run PhraseQuery (term=spectrum)]; }
> 
> How to resolve this ?
> 
> On Tue, Mar 25, 2014 at 12:54 PM, Praveenkumar Arepalli \<  
> [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> wrote:
> 
> > Your help is appreciated.
> > 
> > On Tue, Mar 25, 2014 at 12:52 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain)
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 25 mars 2014 à 08:18, Praveenkumar Arepalli \<  
> > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > > 
> > > How to use explain David?
> > > 
> > > On Tue, Mar 25, 2014 at 12:44 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > I understand that you as a developer want to know it.  
> > > > My question is what are you going to do with that information?
> > > > 
> > > > If it's for debugging purpose then explain is fine.
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 25 mars 2014 à 08:07, Praveenkumar Arepalli \<  
> > > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > > > 
> > > > Hi David,  
> > > > A record have 40 fields  
> > > > if the each field has same word in it then as a developer I want know  
> > > > which field is matched
> > > > 
> > > > Ex:  
> > > > {  
> > > > "name" : "joseph",  
> > > > "phoneNumber" : "joseph 123",  
> > > > "emailId" : "joseph 234",  
> > > > "address" : "joseph street",  
> > > > .....
> > > > 
> > > > }  
> > > > like this 40 fields
> > > > 
> > > > i am using matchQuery to get results back.
> > > > 
> > > > My searchText will be "joseph"
> > > > 
> > > > it is returning results but eagerly waiting to know field is matched.
> > > > 
> > > > On Tue, Mar 25, 2014 at 12:29 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > 
> > > > > May be using explain option.
> > > > > 
> > > > > But question is more "why a user would like knowing that?"  
> > > > > Could you describe a little more your use case and what you are trying  
> > > > > to achieve?
> > > > > 
> > > > > --  
> > > > > David 😉  
> > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > 
> > > > > Le 25 mars 2014 à 07:37, Praveenkumar Arepalli \<  
> > > > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > > > > 
> > > > > Hi Team, I have little knowledge in elasticsearch but i cannot  
> > > > > satisfied with what have know.i want to enhance my knowledge.  
> > > > > Here is the question 1.How to know which field is matched in indexed  
> > > > > document while fetching from Index?  
> > > > > Ex: structure of document in index
> > > > > 
> > > > > Document #1 { "name" : "praveen kumar", "Company" : "praveen  
> > > > > Tech", "email" : "praveen@gmail.com", "phone" : "1234567890"  
> > > > > }  
> > > > > Document #2 { "name" : "joseph", "company": "praveen Tech" }
> > > > > 
> > > > > --  
> > > > > 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/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to a topic in the  
> > > > > Google Groups "elasticsearch" group.  
> > > > > To unsubscribe from this topic, visit  
> > > > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe)  
> > > > > .  
> > > > > To unsubscribe from this group and all its topics, 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/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > Thanks & Regards:  
> > > > Praveenkumar Arepalli
> > > > 
> > > > --  
> > > > 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/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to a topic in the  
> > > > Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit  
> > > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe)  
> > > > .  
> > > > To unsubscribe from this group and all its topics, 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/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > Thanks & Regards:  
> > > Praveenkumar Arepalli
> > > 
> > > --  
> > > 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/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> > > To unsubscribe from this group and all its topics, 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/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > Thanks & Regards:  
> > Praveenkumar Arepalli
> 
> --  
> Thanks & Regards:  
> Praveenkumar Arepalli
> 
> --  
> 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/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

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

---

<div class="post-metadata">

**Author:** ![Praveenkumar\_Arepall](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@Praveenkumar\_Arepall](https://discuss.elastic.co/u/Praveenkumar_Arepall)\
**Post date:** [March 25, 2014, 9:06am UTC](https://discuss.elastic.co/t/searhch-request/16578/10 "2014-03-25T09:06:23Z")

</div>

{  
"index.analysis.analyzer.test\_whitespace\_wdf\_lcf\_analyzer.filter.1" :  
"test\_lowercase\_filter",  
"index.analysis.analyzer.test\_whitespace\_wdf\_lcf\_analyzer.filter.0" :  
"test\_word\_delimiter\_filter",

"index.analysis.analyzer.test\_whitespace\_wdf\_lcf\_analyzer.tokenizer" :  
"test\_whitespace\_tokenizer",  
"index.analysis.filter.test\_lowercase\_filter.type" : "lowercase",  
"index.analysis.filter.test\_word\_delimiter\_filter.catenate\_words" : "true",

"index.analysis.filter.test\_word\_delimiter\_filter.type" : "word\_delimiter",  
"index.analysis.filter.test\_word\_delimiter\_filter.preserve\_original" : "true",  
"index.analysis.filter.test\_word\_delimiter\_filter.catenate\_numbers" : "true",

"index.analysis.filter.test\_word\_delimiter\_filter.catenate\_all" : "true"  
"index.analysis.analyzer.test\_sort\_analyzer.filter" : "lowercase",  
"index.analysis.analyzer.test\_sort\_analyzer.tokenizer" : "keyword",

}

"companyName" : {  
"type" : "multi\_field",  
"fields" : {  
"companyName" : {  
"type" : "string",

```
        "analyzer" : "test_whitespace_wdf_lcf_analyzer"
      },
      "sortable" : {
        "type" : "string",
        "analyzer" : "test_sort_analyzer",

        "include_in_all" : false
      },
      "untouched" : {
        "type" : "string",
        "index" : "not_analyzed",
        "norms" : {

          "enabled" : false
        },
        "index_options" : "docs",
        "include_in_all" : false
      }
    }
  }

```

My Input data : group & Company

it was stored successfully

now am searching with "group & Company"  
using matchPhrasePrefixQuery

On Tue, Mar 25, 2014 at 1:33 PM, Michael Kleen [mkleen@gmail.com](mailto:mkleen@gmail.com) wrote:

> Hi Praveenkumar,
> 
> what is your index layout, your input data and what is your query request  
> ? Can you post your setup as a working example using curls similiar to  
> [https://gist.github.com/mkleen/4739479](https://gist.github.com/mkleen/4739479) ? In this way its easy to help you  
> here.
> 
> Regards,
> 
> Michael
> 
> On 25 March 2014 08:29, Praveenkumar Arepalli \<  
> [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> wrote:
> 
> > "companyName" : {  
> > "type" : "multi\_field",  
> > "fields" : {  
> > "companyName" : {  
> > "type" : "string",  
> > "analyzer" : "apptivo\_whitespace\_wdf\_lcf\_analyzer"  
> > },  
> > "sortable" : {  
> > "type" : "string",  
> > "analyzer" : "apptivo\_sort\_analyzer",  
> > "include\_in\_all" : false  
> > },  
> > "untouched" : {  
> > "type" : "string",  
> > "index" : "not\_analyzed",  
> > "norms" : {  
> > "enabled" : false  
> > },  
> > "index\_options" : "docs",  
> > "include\_in\_all" : false  
> > }  
> > }  
> > }
> > 
> > When i am searching in compantName field  
> > nested: IllegalStateException[field "companyName" was indexed without position data; cannot run PhraseQuery (term=spectrum)]; }
> > 
> > How to resolve this ?
> > 
> > On Tue, Mar 25, 2014 at 12:54 PM, Praveenkumar Arepalli \<  
> > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> wrote:
> > 
> > > Your help is appreciated.
> > > 
> > > On Tue, Mar 25, 2014 at 12:52 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain)
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 25 mars 2014 à 08:18, Praveenkumar Arepalli \<  
> > > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > > > 
> > > > How to use explain David?
> > > > 
> > > > On Tue, Mar 25, 2014 at 12:44 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > 
> > > > > I understand that you as a developer want to know it.  
> > > > > My question is what are you going to do with that information?
> > > > > 
> > > > > If it's for debugging purpose then explain is fine.
> > > > > 
> > > > > --  
> > > > > David 😉  
> > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > 
> > > > > Le 25 mars 2014 à 08:07, Praveenkumar Arepalli \<  
> > > > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > > > > 
> > > > > Hi David,  
> > > > > A record have 40 fields  
> > > > > if the each field has same word in it then as a developer I want know  
> > > > > which field is matched
> > > > > 
> > > > > Ex:  
> > > > > {  
> > > > > "name" : "joseph",  
> > > > > "phoneNumber" : "joseph 123",  
> > > > > "emailId" : "joseph 234",  
> > > > > "address" : "joseph street",  
> > > > > .....
> > > > > 
> > > > > }  
> > > > > like this 40 fields
> > > > > 
> > > > > i am using matchQuery to get results back.
> > > > > 
> > > > > My searchText will be "joseph"
> > > > > 
> > > > > it is returning results but eagerly waiting to know field is matched.
> > > > > 
> > > > > On Tue, Mar 25, 2014 at 12:29 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr)wrote:
> > > > > 
> > > > > > May be using explain option.
> > > > > > 
> > > > > > But question is more "why a user would like knowing that?"  
> > > > > > Could you describe a little more your use case and what you are  
> > > > > > trying to achieve?
> > > > > > 
> > > > > > --  
> > > > > > David 😉  
> > > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > > 
> > > > > > Le 25 mars 2014 à 07:37, Praveenkumar Arepalli \<  
> > > > > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > > > > > 
> > > > > > Hi Team, I have little knowledge in elasticsearch but i cannot  
> > > > > > satisfied with what have know.i want to enhance my knowledge.  
> > > > > > Here is the question 1.How to know which field is matched in indexed  
> > > > > > document while fetching from Index?  
> > > > > > Ex: structure of document in index
> > > > > > 
> > > > > > Document #1 { "name" : "praveen kumar", "Company" : "praveen  
> > > > > > Tech", "email" : "praveen@gmail.com", "phone" :  
> > > > > > "1234567890" }  
> > > > > > Document #2 { "name" : "joseph", "company": "praveen Tech" }
> > > > > > 
> > > > > > --  
> > > > > > 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/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > .  
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to a topic in  
> > > > > > the Google Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this topic, visit  
> > > > > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe)  
> > > > > > .  
> > > > > > To unsubscribe from this group and all its topics, 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/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > > > > .
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --  
> > > > > Thanks & Regards:  
> > > > > Praveenkumar Arepalli
> > > > > 
> > > > > --  
> > > > > 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/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to a topic in the  
> > > > > Google Groups "elasticsearch" group.  
> > > > > To unsubscribe from this topic, visit  
> > > > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe)  
> > > > > .  
> > > > > To unsubscribe from this group and all its topics, 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/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > Thanks & Regards:  
> > > > Praveenkumar Arepalli
> > > > 
> > > > --  
> > > > 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/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to a topic in the  
> > > > Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit  
> > > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe)  
> > > > .  
> > > > To unsubscribe from this group and all its topics, 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/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > Thanks & Regards:  
> > > Praveenkumar Arepalli
> > 
> > --  
> > Thanks & Regards:  
> > Praveenkumar Arepalli
> > 
> > --  
> > 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/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Thanks & Regards:  
Praveenkumar Arepalli

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

---

<div class="post-metadata">

**Author:** ![mkleen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mkleen/32/1694_2.png) [@mkleen](https://discuss.elastic.co/u/mkleen)\
**Post date:** [March 25, 2014, 8:58pm UTC](https://discuss.elastic.co/t/searhch-request/16578/11 "2014-03-25T20:58:05Z")

</div>

Don't query the "untouched" field with a matchPhrasePrefixQuery because you  
don't have position for this. Also make sure the positions are switched on  
for all the fields you query.

"companyName" : { "type" : "string", "term\_vector":  
"with\_positions\_offsets\_payloads", "analyzer" :  
"test\_whitespace\_wdf\_lcf\_analyzer"  
},

On 25 March 2014 10:06, Praveenkumar Arepalli \<  
[arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> wrote:

> {  
> "index.analysis.analyzer.test\_whitespace\_wdf\_lcf\_analyzer.filter.1" : "test\_lowercase\_filter",  
> "index.analysis.analyzer.test\_whitespace\_wdf\_lcf\_analyzer.filter.0" : "test\_word\_delimiter\_filter",
> 
> "index.analysis.analyzer.test\_whitespace\_wdf\_lcf\_analyzer.tokenizer" : "test\_whitespace\_tokenizer",  
> "index.analysis.filter.test\_lowercase\_filter.type" : "lowercase",  
> "index.analysis.filter.test\_word\_delimiter\_filter.catenate\_words" : "true",
> 
> "index.analysis.filter.test\_word\_delimiter\_filter.type" : "word\_delimiter",  
> "index.analysis.filter.test\_word\_delimiter\_filter.preserve\_original" : "true",  
> "index.analysis.filter.test\_word\_delimiter\_filter.catenate\_numbers" : "true",
> 
> "index.analysis.filter.test\_word\_delimiter\_filter.catenate\_all" : "true"  
> "index.analysis.analyzer.test\_sort\_analyzer.filter" : "lowercase",  
> "index.analysis.analyzer.test\_sort\_analyzer.tokenizer" : "keyword",
> 
> }
> 
> "companyName" : {  
> "type" : "multi\_field",  
> "fields" : {  
> "companyName" : {  
> "type" : "string",
> 
> ```
> "analyzer" : "test_whitespace_wdf_lcf_analyzer"
> 
> },
> "sortable" : {
> "type" : "string",
> "analyzer" : "test_sort_analyzer",
> 
> "include_in_all" : false
> },
> "untouched" : {
> "type" : "string",
> "index" : "not_analyzed",
> 
> "norms" : {
> 
> "enabled" : false
> },
> "index_options" : "docs",
> "include_in_all" : false
> }
> }
> }
> 
> ```
> 
> My Input data : group & Company
> 
> it was stored successfully
> 
> now am searching with "group & Company"  
> using matchPhrasePrefixQuery
> 
> On Tue, Mar 25, 2014 at 1:33 PM, Michael Kleen [mkleen@gmail.com](mailto:mkleen@gmail.com) wrote:
> 
> > Hi Praveenkumar,
> > 
> > what is your index layout, your input data and what is your query request  
> > ? Can you post your setup as a working example using curls similiar to  
> > [https://gist.github.com/mkleen/4739479](https://gist.github.com/mkleen/4739479) ? In this way its easy to help  
> > you here.
> > 
> > Regards,
> > 
> > Michael
> > 
> > On 25 March 2014 08:29, Praveenkumar Arepalli \<  
> > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> wrote:
> > 
> > > "companyName" : {  
> > > "type" : "multi\_field",  
> > > "fields" : {  
> > > "companyName" : {  
> > > "type" : "string",  
> > > "analyzer" : "apptivo\_whitespace\_wdf\_lcf\_analyzer"  
> > > },  
> > > "sortable" : {  
> > > "type" : "string",  
> > > "analyzer" : "apptivo\_sort\_analyzer",  
> > > "include\_in\_all" : false  
> > > },  
> > > "untouched" : {  
> > > "type" : "string",  
> > > "index" : "not\_analyzed",  
> > > "norms" : {  
> > > "enabled" : false  
> > > },  
> > > "index\_options" : "docs",  
> > > "include\_in\_all" : false  
> > > }  
> > > }  
> > > }
> > > 
> > > When i am searching in compantName field  
> > > nested: IllegalStateException[field "companyName" was indexed without position data; cannot run PhraseQuery (term=spectrum)]; }
> > > 
> > > How to resolve this ?
> > > 
> > > On Tue, Mar 25, 2014 at 12:54 PM, Praveenkumar Arepalli \<  
> > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> wrote:
> > > 
> > > > Your help is appreciated.
> > > > 
> > > > On Tue, Mar 25, 2014 at 12:52 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > 
> > > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain)
> > > > > 
> > > > > --  
> > > > > David 😉  
> > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > 
> > > > > Le 25 mars 2014 à 08:18, Praveenkumar Arepalli \<  
> > > > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > > > > 
> > > > > How to use explain David?
> > > > > 
> > > > > On Tue, Mar 25, 2014 at 12:44 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr)wrote:
> > > > > 
> > > > > > I understand that you as a developer want to know it.  
> > > > > > My question is what are you going to do with that information?
> > > > > > 
> > > > > > If it's for debugging purpose then explain is fine.
> > > > > > 
> > > > > > --  
> > > > > > David 😉  
> > > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > > 
> > > > > > Le 25 mars 2014 à 08:07, Praveenkumar Arepalli \<  
> > > > > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > > > > > 
> > > > > > Hi David,  
> > > > > > A record have 40 fields  
> > > > > > if the each field has same word in it then as a developer I want  
> > > > > > know which field is matched
> > > > > > 
> > > > > > Ex:  
> > > > > > {  
> > > > > > "name" : "joseph",  
> > > > > > "phoneNumber" : "joseph 123",  
> > > > > > "emailId" : "joseph 234",  
> > > > > > "address" : "joseph street",  
> > > > > > .....
> > > > > > 
> > > > > > }  
> > > > > > like this 40 fields
> > > > > > 
> > > > > > i am using matchQuery to get results back.
> > > > > > 
> > > > > > My searchText will be "joseph"
> > > > > > 
> > > > > > it is returning results but eagerly waiting to know field is matched.
> > > > > > 
> > > > > > On Tue, Mar 25, 2014 at 12:29 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr)wrote:
> > > > > > 
> > > > > > > May be using explain option.
> > > > > > > 
> > > > > > > But question is more "why a user would like knowing that?"  
> > > > > > > Could you describe a little more your use case and what you are  
> > > > > > > trying to achieve?
> > > > > > > 
> > > > > > > --  
> > > > > > > David 😉  
> > > > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > > > 
> > > > > > > Le 25 mars 2014 à 07:37, Praveenkumar Arepalli \<  
> > > > > > > [arepalli.praveen6192@gmail.com](mailto:arepalli.praveen6192@gmail.com)\> a écrit :
> > > > > > > 
> > > > > > > Hi Team, I have little knowledge in elasticsearch but i cannot  
> > > > > > > satisfied with what have know.i want to enhance my knowledge.  
> > > > > > > Here is the question 1.How to know which field is matched in indexed  
> > > > > > > document while fetching from Index?  
> > > > > > > Ex: structure of document in index
> > > > > > > 
> > > > > > > Document #1 { "name" : "praveen kumar", "Company" : "praveen  
> > > > > > > Tech", "email" : "praveen@gmail.com", "phone" :  
> > > > > > > "1234567890" }  
> > > > > > > Document #2 { "name" : "joseph", "company": "praveen Tech" }
> > > > > > > 
> > > > > > > --  
> > > > > > > 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/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > .  
> > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > 
> > > > > > > --  
> > > > > > > You received this message because you are subscribed to a topic in  
> > > > > > > the Google Groups "elasticsearch" group.  
> > > > > > > To unsubscribe from this topic, visit  
> > > > > > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe)  
> > > > > > > .  
> > > > > > > To unsubscribe from this group and all its topics, 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/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > > > > > .
> > > > > > > 
> > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > 
> > > > > > --  
> > > > > > Thanks & Regards:  
> > > > > > Praveenkumar Arepalli
> > > > > > 
> > > > > > --  
> > > > > > 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/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > > .
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to a topic in  
> > > > > > the Google Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this topic, visit  
> > > > > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe)  
> > > > > > .  
> > > > > > To unsubscribe from this group and all its topics, 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/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > > > > .
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --  
> > > > > Thanks & Regards:  
> > > > > Praveenkumar Arepalli
> > > > > 
> > > > > --  
> > > > > 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/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to a topic in the  
> > > > > Google Groups "elasticsearch" group.  
> > > > > To unsubscribe from this topic, visit  
> > > > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe)  
> > > > > .  
> > > > > To unsubscribe from this group and all its topics, 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/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > Thanks & Regards:  
> > > > Praveenkumar Arepalli
> > > 
> > > --  
> > > Thanks & Regards:  
> > > Praveenkumar Arepalli
> > > 
> > > --  
> > > 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/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Thanks & Regards:  
> Praveenkumar Arepalli
> 
> --  
> 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/CACuc-KntXc2g%2Bgbru8JRNzhPis7SbSUSrwK7BRcUAomQu1gdVA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KntXc2g%2Bgbru8JRNzhPis7SbSUSrwK7BRcUAomQu1gdVA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-KntXc2g%2Bgbru8JRNzhPis7SbSUSrwK7BRcUAomQu1gdVA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-KntXc2g%2Bgbru8JRNzhPis7SbSUSrwK7BRcUAomQu1gdVA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

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

---

<div class="post-metadata">

**Author:** ![Praveenkumar\_Arepall](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@Praveenkumar\_Arepall](https://discuss.elastic.co/u/Praveenkumar_Arepall)\
**Post date:** [March 26, 2014, 3:29pm UTC](https://discuss.elastic.co/t/searhch-request/16578/12 "2014-03-26T15:29:18Z")

</div>

Thank u Michael.

On Wednesday, 26 March 2014 02:28:05 UTC+5:30, mkleen wrote:

> Don't query the "untouched" field with a matchPhrasePrefixQuery because  
> you don't have position for this. Also make sure the positions are switched  
> on for all the fields you query.
> 
> "companyName" : { "type" : "string", "term\_vector":  
> "with\_positions\_offsets\_payloads", "analyzer" :  
> "test\_whitespace\_wdf\_lcf\_analyzer"  
> },
> 
> On 25 March 2014 10:06, Praveenkumar Arepalli \<[arepalli.p...@gmail.com](mailto:arepalli.p...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > {  
> > "index.analysis.analyzer.test\_whitespace\_wdf\_lcf\_analyzer.filter.1" : "test\_lowercase\_filter",  
> > "index.analysis.analyzer.test\_whitespace\_wdf\_lcf\_analyzer.filter.0" : "test\_word\_delimiter\_filter",
> > 
> > "index.analysis.analyzer.test\_whitespace\_wdf\_lcf\_analyzer.tokenizer" : "test\_whitespace\_tokenizer",  
> > "index.analysis.filter.test\_lowercase\_filter.type" : "lowercase",  
> > "index.analysis.filter.test\_word\_delimiter\_filter.catenate\_words" : "true",
> > 
> > "index.analysis.filter.test\_word\_delimiter\_filter.type" : "word\_delimiter",  
> > "index.analysis.filter.test\_word\_delimiter\_filter.preserve\_original" : "true",  
> > "index.analysis.filter.test\_word\_delimiter\_filter.catenate\_numbers" : "true",
> > 
> > "index.analysis.filter.test\_word\_delimiter\_filter.catenate\_all" : "true"  
> > "index.analysis.analyzer.test\_sort\_analyzer.filter" : "lowercase",  
> > "index.analysis.analyzer.test\_sort\_analyzer.tokenizer" : "keyword",
> > 
> > }
> > 
> > "companyName" : {  
> > "type" : "multi\_field",  
> > "fields" : {  
> > "companyName" : {  
> > "type" : "string",
> > 
> > ```
> > "analyzer" : "test_whitespace_wdf_lcf_analyzer"
> > 
> > },
> > "sortable" : {
> > "type" : "string",
> > "analyzer" : "test_sort_analyzer",
> > 
> > "include_in_all" : false
> > },
> > "untouched" : {
> > "type" : "string",
> > "index" : "not_analyzed",
> > 
> > "norms" : {
> > 
> > "enabled" : false
> > },
> > "index_options" : "docs",
> > "include_in_all" : false
> > }
> > }
> > }
> > 
> > ```
> > 
> > My Input data : group & Company
> > 
> > it was stored successfully
> > 
> > now am searching with "group & Company"  
> > using matchPhrasePrefixQuery
> > 
> > On Tue, Mar 25, 2014 at 1:33 PM, Michael Kleen \<[mkl...@gmail.com](mailto:mkl...@gmail.com)\<javascript:\>
> > 
> > > wrote:
> > 
> > > Hi Praveenkumar,
> > > 
> > > what is your index layout, your input data and what is your query  
> > > request ? Can you post your setup as a working example using curls similiar  
> > > to [https://gist.github.com/mkleen/4739479](https://gist.github.com/mkleen/4739479) ? In this way its easy to  
> > > help you here.
> > > 
> > > Regards,
> > > 
> > > Michael
> > > 
> > > On 25 March 2014 08:29, Praveenkumar Arepalli \<[arepalli.p...@gmail.com](mailto:arepalli.p...@gmail.com)\<javascript:\>
> > > 
> > > > wrote:
> > > 
> > > > "companyName" : {  
> > > > "type" : "multi\_field",  
> > > > "fields" : {  
> > > > "companyName" : {  
> > > > "type" : "string",  
> > > > "analyzer" : "apptivo\_whitespace\_wdf\_lcf\_analyzer"  
> > > > },  
> > > > "sortable" : {  
> > > > "type" : "string",  
> > > > "analyzer" : "apptivo\_sort\_analyzer",  
> > > > "include\_in\_all" : false  
> > > > },  
> > > > "untouched" : {  
> > > > "type" : "string",  
> > > > "index" : "not\_analyzed",  
> > > > "norms" : {  
> > > > "enabled" : false  
> > > > },  
> > > > "index\_options" : "docs",  
> > > > "include\_in\_all" : false  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > When i am searching in compantName field  
> > > > nested: IllegalStateException[field "companyName" was indexed without position data; cannot run PhraseQuery (term=spectrum)]; }
> > > > 
> > > > How to resolve this ?
> > > > 
> > > > On Tue, Mar 25, 2014 at 12:54 PM, Praveenkumar Arepalli \<  
> > > > [arepalli.p...@gmail.com](mailto:arepalli.p...@gmail.com) \<javascript:\>\> wrote:
> > > > 
> > > > > Your help is appreciated.
> > > > > 
> > > > > On Tue, Mar 25, 2014 at 12:52 PM, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr)\<javascript:\>
> > > > > 
> > > > > > wrote:
> > > > > 
> > > > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain)
> > > > > > 
> > > > > > --  
> > > > > > David 😉  
> > > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > > 
> > > > > > Le 25 mars 2014 à 08:18, Praveenkumar Arepalli \<  
> > > > > > [arepalli.p...@gmail.com](mailto:arepalli.p...@gmail.com) \<javascript:\>\> a écrit :
> > > > > > 
> > > > > > How to use explain David?
> > > > > > 
> > > > > > On Tue, Mar 25, 2014 at 12:44 PM, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr)\<javascript:\>
> > > > > > 
> > > > > > > wrote:
> > > > > > 
> > > > > > > I understand that you as a developer want to know it.  
> > > > > > > My question is what are you going to do with that information?
> > > > > > > 
> > > > > > > If it's for debugging purpose then explain is fine.
> > > > > > > 
> > > > > > > --  
> > > > > > > David 😉  
> > > > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > > > 
> > > > > > > Le 25 mars 2014 à 08:07, Praveenkumar Arepalli \<  
> > > > > > > [arepalli.p...@gmail.com](mailto:arepalli.p...@gmail.com) \<javascript:\>\> a écrit :
> > > > > > > 
> > > > > > > Hi David,  
> > > > > > > A record have 40 fields  
> > > > > > > if the each field has same word in it then as a developer I want  
> > > > > > > know which field is matched
> > > > > > > 
> > > > > > > Ex:  
> > > > > > > {  
> > > > > > > "name" : "joseph",  
> > > > > > > "phoneNumber" : "joseph 123",  
> > > > > > > "emailId" : "joseph 234",  
> > > > > > > "address" : "joseph street",  
> > > > > > > .....
> > > > > > > 
> > > > > > > }  
> > > > > > > like this 40 fields
> > > > > > > 
> > > > > > > i am using matchQuery to get results back.
> > > > > > > 
> > > > > > > My searchText will be "joseph"
> > > > > > > 
> > > > > > > it is returning results but eagerly waiting to know field is  
> > > > > > > matched.
> > > > > > > 
> > > > > > > On Tue, Mar 25, 2014 at 12:29 PM, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr)\<javascript:\>
> > > > > > > 
> > > > > > > > wrote:
> > > > > > > 
> > > > > > > > May be using explain option.
> > > > > > > > 
> > > > > > > > But question is more "why a user would like knowing that?"  
> > > > > > > > Could you describe a little more your use case and what you are  
> > > > > > > > trying to achieve?
> > > > > > > > 
> > > > > > > > --  
> > > > > > > > David 😉  
> > > > > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > > > > 
> > > > > > > > Le 25 mars 2014 à 07:37, Praveenkumar Arepalli \<  
> > > > > > > > [arepalli.p...@gmail.com](mailto:arepalli.p...@gmail.com) \<javascript:\>\> a écrit :
> > > > > > > > 
> > > > > > > > Hi Team, I have little knowledge in elasticsearch but i cannot  
> > > > > > > > satisfied with what have know.i want to enhance my knowledge.  
> > > > > > > > Here is the question 1.How to know which field is matched in  
> > > > > > > > indexed document while fetching from Index?  
> > > > > > > > Ex: structure of document in index
> > > > > > > > 
> > > > > > > > Document #1 { "name" : "praveen kumar", "Company" : "praveen  
> > > > > > > > Tech", "email" : "pra...@gmail.com \<javascript:\>", "phone"  
> > > > > > > > : "1234567890" }  
> > > > > > > > Document #2 { "name" : "joseph", "company": "praveen Tech" }
> > > > > > > > 
> > > > > > > > --  
> > > > > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.
> > > > > > > > 
> > > > > > > > To view this discussion on the web visit  
> > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > > .  
> > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > > 
> > > > > > > > --  
> > > > > > > > You received this message because you are subscribed to a topic in  
> > > > > > > > the Google Groups "elasticsearch" group.  
> > > > > > > > To unsubscribe from this topic, visit  
> > > > > > > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe)  
> > > > > > > > .  
> > > > > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > > > > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > > > > > To view this discussion on the web visit  
> > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > > > > > > .
> > > > > > > > 
> > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > 
> > > > > > > --  
> > > > > > > Thanks & Regards:  
> > > > > > > Praveenkumar Arepalli
> > > > > > > 
> > > > > > > --  
> > > > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > > > .
> > > > > > > 
> > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > 
> > > > > > > --  
> > > > > > > You received this message because you are subscribed to a topic in  
> > > > > > > the Google Groups "elasticsearch" group.  
> > > > > > > To unsubscribe from this topic, visit  
> > > > > > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe)  
> > > > > > > .  
> > > > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > > > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > > > > > .
> > > > > > > 
> > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > 
> > > > > > --  
> > > > > > Thanks & Regards:  
> > > > > > Praveenkumar Arepalli
> > > > > > 
> > > > > > --  
> > > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > > > To view this discussion on the web visit  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > > .
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to a topic in  
> > > > > > the Google Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this topic, visit  
> > > > > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe)  
> > > > > > .  
> > > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > > > To view this discussion on the web visit  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > > > > .
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --  
> > > > > Thanks & Regards:  
> > > > > Praveenkumar Arepalli
> > > > 
> > > > --  
> > > > Thanks & Regards:  
> > > > Praveenkumar Arepalli
> > > > 
> > > > --  
> > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > Thanks & Regards:  
> > Praveenkumar Arepalli
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CACuc-KntXc2g%2Bgbru8JRNzhPis7SbSUSrwK7BRcUAomQu1gdVA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KntXc2g%2Bgbru8JRNzhPis7SbSUSrwK7BRcUAomQu1gdVA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-KntXc2g%2Bgbru8JRNzhPis7SbSUSrwK7BRcUAomQu1gdVA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-KntXc2g%2Bgbru8JRNzhPis7SbSUSrwK7BRcUAomQu1gdVA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/7e3f00a6-f6df-425a-8401-2da7e949f74f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7e3f00a6-f6df-425a-8401-2da7e949f74f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Praveenkumar\_Arepall](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@Praveenkumar\_Arepall](https://discuss.elastic.co/u/Praveenkumar_Arepall)\
**Post date:** [March 28, 2014, 11:42am UTC](https://discuss.elastic.co/t/searhch-request/16578/13 "2014-03-28T11:42:16Z")

</div>

{  
"testtype" : {  
"properties" : {  
"mobile" : {  
"type" : "string"  
},  
"name" : {  
"type" : "string"  
},  
"number" : {  
"type" : "long"  
}  
}  
}  
}

curl -XGET '[http://host](http://host):IP/testindex/testtype/\_search?pretty'{  
"took" : 3,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 1,  
"successful" : 1,  
"failed" : 0  
},  
"hits" : {  
"total" : 5,  
"max\_score" : 1.0,  
"hits" : [ {  
"\_index" : "testindex",  
"\_type" : "testtype",  
"\_id" : "1",  
"\_score" : 1.0, "\_source" : {"name":"praveen kumar","mobile":"praveen  
joseph"}  
}, {  
"\_index" : "testindex",  
"\_type" : "testtype",  
"\_id" : "3",  
"\_score" : 1.0, "\_source" : {"name":"praveen kumar arepalli"}  
}, {  
"\_index" : "testindex",  
"\_type" : "testtype",  
"\_id" : "2",  
"\_score" : 1.0, "\_source" : {"name":"kumar ravi"}  
}, {  
"\_index" : "testindex",  
"\_type" : "testtype",  
"\_id" : "4",  
"\_score" : 1.0, "\_source" : {"name":"joseph  
praveen","mobile":"joseph","number":"123"}  
}, {  
"\_index" : "testindex",  
"\_type" : "testtype",  
"\_id" : "5",  
"\_score" : 1.0, "\_source" : {"name":"raj sekhar","mobile":"joseph  
praveen","number":"567"}  
} ]  
}  
}  
This index of type testtype contains 5 documents.

curl -XGET '[http://host](http://host):IP/testindex/testtype/\_search?pretty' -d  
'{"query":{"term":{"name":"praveen"}},"explain":true}'  
{  
"took" : 5,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 1,  
"successful" : 1,  
"failed" : 0  
},  
"hits" : {  
"total" : 3,  
"max\_score" : 6.7261667,  
"hits" : [ {  
"\_shard" : 0,  
"\_node" : "mkEXkeGDQzuq4Z5ONLcVYA",  
"\_index" : "testindex",  
"\_type" : "testtype",  
"\_id" : "1",  
"\_score" : 6.7261667, "\_source" : {"name":"praveen  
kumar","mobile":"praveen joseph"},  
"\_explanation" : {  
"value" : 6.7261667,  
"description" : "weight(name:praveen in 519) [PerFieldSimilarity],  
result of:",  
"details" : [ {  
"value" : 6.7261667,  
"description" : "fieldWeight in 519, product of:",  
"details" : [ {  
"value" : 1.0,  
"description" : "tf(freq=1.0), with freq of:",  
"details" : [ {  
"value" : 1.0,  
"description" : "termFreq=1.0"  
} ]  
}, {  
"value" : 10.761867,  
"description" : "idf(docFreq=3, maxDocs=69436)"  
}, {  
"value" : 0.625,  
"description" : "fieldNorm(doc=519)"  
} ]  
} ]  
}  
}, {  
"\_shard" : 0,  
"\_node" : "mkEXkeGDQzuq4Z5ONLcVYA",  
"\_index" : "testindex",  
"\_type" : "testtype",  
"\_id" : "4",  
"\_score" : 6.7261667, "\_source" : {"name":"joseph  
praveen","mobile":"joseph","number":"123"},  
"\_explanation" : {  
"value" : 6.7261667,  
"description" : "weight(name:praveen in 0) [PerFieldSimilarity],  
result of:",  
"details" : [ {  
"value" : 6.7261667,  
"description" : "fieldWeight in 0, product of:",  
"details" : [ {  
"value" : 1.0,  
"description" : "tf(freq=1.0), with freq of:",  
"details" : [ {  
"value" : 1.0,  
"description" : "termFreq=1.0"  
} ]  
}, {  
"value" : 10.761867,  
"description" : "idf(docFreq=3, maxDocs=69436)"  
}, {  
"value" : 0.625,  
"description" : "fieldNorm(doc=0)"  
} ]  
} ]  
}  
}, {  
"\_shard" : 0,  
"\_node" : "mkEXkeGDQzuq4Z5ONLcVYA",  
"\_index" : "testindex",  
"\_type" : "testtype",  
"\_id" : "3",  
"\_score" : 5.3809333, "\_source" : {"name":"praveen kumar arepalli"},  
"\_explanation" : {  
"value" : 5.3809333,  
"description" : "weight(name:praveen in 545) [PerFieldSimilarity],  
result of:",  
"details" : [ {  
"value" : 5.3809333,  
"description" : "fieldWeight in 545, product of:",  
"details" : [ {  
"value" : 1.0,  
"description" : "tf(freq=1.0), with freq of:",  
"details" : [ {  
"value" : 1.0,  
"description" : "termFreq=1.0"  
} ]  
}, {  
"value" : 10.761867,  
"description" : "idf(docFreq=3, maxDocs=69436)"  
}, {  
"value" : 0.5,  
"description" : "fieldNorm(doc=545)"  
} ]  
} ]  
}  
} ]  
}  
}

Here i used "explain":true  
Could you please explain me

On Tuesday, 25 March 2014 12:52:16 UTC+5:30, David Pilato wrote:

> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain)
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 25 mars 2014 à 08:18, Praveenkumar Arepalli \<[arepalli.p...@gmail.com](mailto:arepalli.p...@gmail.com)\<javascript:\>\>  
> a écrit :
> 
> How to use explain David?
> 
> On Tue, Mar 25, 2014 at 12:44 PM, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr)\<javascript:\>
> 
> > wrote:
> 
> > I understand that you as a developer want to know it.  
> > My question is what are you going to do with that information?
> > 
> > If it's for debugging purpose then explain is fine.
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 25 mars 2014 à 08:07, Praveenkumar Arepalli \<[arepalli.p...@gmail.com](mailto:arepalli.p...@gmail.com)\<javascript:\>\>  
> > a écrit :
> > 
> > Hi David,  
> > A record have 40 fields  
> > if the each field has same word in it then as a developer I want know  
> > which field is matched
> > 
> > Ex:  
> > {  
> > "name" : "joseph",  
> > "phoneNumber" : "joseph 123",  
> > "emailId" : "joseph 234",  
> > "address" : "joseph street",  
> > .....
> > 
> > }  
> > like this 40 fields
> > 
> > i am using matchQuery to get results back.
> > 
> > My searchText will be "joseph"
> > 
> > it is returning results but eagerly waiting to know field is matched.
> > 
> > On Tue, Mar 25, 2014 at 12:29 PM, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr)\<javascript:\>
> > 
> > > wrote:
> > 
> > > May be using explain option.
> > > 
> > > But question is more "why a user would like knowing that?"  
> > > Could you describe a little more your use case and what you are trying  
> > > to achieve?
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 25 mars 2014 à 07:37, Praveenkumar Arepalli \<[arepalli.p...@gmail.com](mailto:arepalli.p...@gmail.com)\<javascript:\>\>  
> > > a écrit :
> > > 
> > > Hi Team, I have little knowledge in elasticsearch but i cannot satisfied  
> > > with what have know.i want to enhance my knowledge.  
> > > Here is the question 1.How to know which field is matched in indexed  
> > > document while fetching from Index?  
> > > Ex: structure of document in index
> > > 
> > > Document #1 { "name" : "praveen kumar", "Company" : "praveen  
> > > Tech", "email" : "pra...@gmail.com \<javascript:\>", "phone" :  
> > > "1234567890" }  
> > > Document #2 { "name" : "joseph", "company": "praveen Tech" }
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.
> > > 
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > Thanks & Regards:  
> > Praveenkumar Arepalli
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe](https://groups.google.com/d/topic/elasticsearch/N1MJrXE1Zng/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Thanks & Regards:  
> Praveenkumar Arepalli
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/800e1ebf-9633-40c5-9bcd-e9da0c2a26fe%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/800e1ebf-9633-40c5-9bcd-e9da0c2a26fe%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:39am UTC](https://discuss.elastic.co/t/searhch-request/16578/14 "2017-07-06T01:39:55Z")

</div>


