Searhch Request


(Praveenkumar Arepalli) #1

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(David Pilato) #2

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/38D636E7-01B5-4E17-BBCD-EBAC6B75E6DC%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.


(Praveenkumar Arepalli) #3

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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli <
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.

To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit 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.


(David Pilato) #4

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 08:07, Praveenkumar Arepalli 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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli 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.

To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com.
For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to 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.

For more options, visit 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.
To view this discussion on the web visit 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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/78BBE902-889B-4B26-BA32-1D56758D6FE8%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.


(Praveenkumar Arepalli) #5

How to use explain David?

On Tue, Mar 25, 2014 at 12:44 PM, David Pilato 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 08:07, Praveenkumar Arepalli <
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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli <
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.

To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit 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.


(David Pilato) #6

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain

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

Le 25 mars 2014 à 08:18, Praveenkumar Arepalli 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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 08:07, Praveenkumar Arepalli 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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli 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.

To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.com.
For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to 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.

For more options, visit 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.
To view this discussion on the web visit 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.

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.
To unsubscribe from this group and all its topics, send an email to 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.

For more options, visit 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.
To view this discussion on the web visit 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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8986FC73-1AD3-46C1-818D-795AD5EB874D%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.


(Praveenkumar Arepalli) #7

Your help is appreciated.

On Tue, Mar 25, 2014 at 12:52 PM, David Pilato david@pilato.fr wrote:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain

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

Le 25 mars 2014 à 08:18, Praveenkumar Arepalli <
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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 08:07, Praveenkumar Arepalli <
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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli <
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.

To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit 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.


(Praveenkumar Arepalli) #8

"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> wrote:

Your help is appreciated.

On Tue, Mar 25, 2014 at 12:52 PM, David Pilato david@pilato.fr wrote:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain

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

Le 25 mars 2014 à 08:18, Praveenkumar Arepalli <
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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 08:07, Praveenkumar Arepalli <
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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli <
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.

To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.comhttps://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.

--
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
.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit 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.


(mkleen) #9

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 ? In this way its easy to help you
here.

Regards,

Michael

On 25 March 2014 08:29, Praveenkumar Arepalli <
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> wrote:

Your help is appreciated.

On Tue, Mar 25, 2014 at 12:52 PM, David Pilato david@pilato.fr wrote:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain

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

Le 25 mars 2014 à 08:18, Praveenkumar Arepalli <
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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 08:07, Praveenkumar Arepalli <
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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli <
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.

To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.comhttps://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.

--
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
.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.comhttps://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.

--
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
.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.comhttps://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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(Praveenkumar Arepalli) #10

{
"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 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 ? In this way its easy to help you
here.

Regards,

Michael

On 25 March 2014 08:29, Praveenkumar Arepalli <
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> wrote:

Your help is appreciated.

On Tue, Mar 25, 2014 at 12:52 PM, David Pilato david@pilato.fr wrote:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain

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

Le 25 mars 2014 à 08:18, Praveenkumar Arepalli <
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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 08:07, Praveenkumar Arepalli <
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.frwrote:

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli <
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.

To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.comhttps://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.

--
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
.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.comhttps://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.

--
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
.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.comhttps://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.

--
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
.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.comhttps://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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CACuc-KntXc2g%2Bgbru8JRNzhPis7SbSUSrwK7BRcUAomQu1gdVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(mkleen) #11

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> 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 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 ? In this way its easy to help
you here.

Regards,

Michael

On 25 March 2014 08:29, Praveenkumar Arepalli <
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> wrote:

Your help is appreciated.

On Tue, Mar 25, 2014 at 12:52 PM, David Pilato david@pilato.fr wrote:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain

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

Le 25 mars 2014 à 08:18, Praveenkumar Arepalli <
arepalli.praveen6192@gmail.com> a écrit :

How to use explain David?

On Tue, Mar 25, 2014 at 12:44 PM, David Pilato david@pilato.frwrote:

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 08:07, Praveenkumar Arepalli <
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.frwrote:

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli <
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.

To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.comhttps://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.

--
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
.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.comhttps://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.

--
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
.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.comhttps://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.

--
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
.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.comhttps://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.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-KntXc2g%2Bgbru8JRNzhPis7SbSUSrwK7BRcUAomQu1gdVA%40mail.gmail.comhttps://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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAALawn7Xu%3DHeK8W1FuiVHXSXQwE-X2p9yDEHA3q1ARTism-qCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(Praveenkumar Arepalli) #12

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<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<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 ? In this way its easy to
help you here.

Regards,

Michael

On 25 March 2014 08:29, Praveenkumar Arepalli <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 <javascript:>> wrote:

Your help is appreciated.

On Tue, Mar 25, 2014 at 12:52 PM, David Pilato <da...@pilato.fr<javascript:>

wrote:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain

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

Le 25 mars 2014 à 08:18, Praveenkumar Arepalli <
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<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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 08:07, Praveenkumar Arepalli <
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<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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli <
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 <javascript:>.

To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.comhttps://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.

--
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
.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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 <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.comhttps://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.

--
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
.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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 <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.comhttps://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.

--
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
.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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 <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-K%3DuBGDF3KYjMahZ0N8VQhs1F%2BbKHW-%2B%2BOYj7r4uKqp2kg%40mail.gmail.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAALawn7XO4NV0U%3Dk3zS3RSdHd1pzaJayEFT1OYeDLXR3bT0nKA%40mail.gmail.comhttps://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.

--
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 <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-KntXc2g%2Bgbru8JRNzhPis7SbSUSrwK7BRcUAomQu1gdVA%40mail.gmail.comhttps://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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7e3f00a6-f6df-425a-8401-2da7e949f74f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Praveenkumar Arepalli) #13

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

curl -XGET '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: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:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain

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

Le 25 mars 2014 à 08:18, Praveenkumar Arepalli <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<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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 08:07, Praveenkumar Arepalli <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<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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 25 mars 2014 à 07:37, Praveenkumar Arepalli <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 <javascript:>.

To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7be39d44-4573-422b-ac69-d22989062b1a%40googlegroups.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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 <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-KnVn4TdXZGj95tF%3DZo2LfS%2BWZ9CzYJMn4GNFOd-hRQkmA%40mail.gmail.comhttps://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.

--
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.
To unsubscribe from this group and all its topics, send an email to
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.frhttps://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.

--
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 <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CACuc-Kn38vmWFw%2BRFGG%3DV4xtCCAiDaxvafwen%3Dp6qq82GnVDPg%40mail.gmail.comhttps://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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/800e1ebf-9633-40c5-9bcd-e9da0c2a26fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #14