# Prefix Query Result Problem

**URL:** <https://discuss.elastic.co/t/prefix-query-result-problem/23082>\
**Category:** Elasticsearch\
**Created:** [April 3, 2015, 12:34pm UTC](https://discuss.elastic.co/t/prefix-query-result-problem/23082 "2015-04-03T12:34:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Crone](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@James\_Crone](https://discuss.elastic.co/u/James_Crone)\
**Post date:** [April 3, 2015, 12:34pm UTC](https://discuss.elastic.co/t/prefix-query-result-problem/23082/1 "2015-04-03T12:34:29Z")

</div>

prefix query is not returning the correct results..  
in ISO Country data.. my query was

{"query":{"bool":{"must":[{"prefix":{"country.name  
":"in"}}],"must\_not":[],"should":[]}},"from":0,"size":50,"sort":[],"facets":{}}  
and the returned result is:  
{ took: 3 timed\_out: false \_shards: { total: 5 successful: 5 failed: 0 }  
hits: { total: 3 max\_score: 1 hits: [ { \_index: restdb \_type: country \_id:  
sX3-aNGBQaOjo-L7zNj7qQ \_score: 1\_source: { id: 519fcbce820ea8950373612b code  
: ID name: INDONESIA } }{ \_index: restdb \_type: country \_id:  
YMXpIxaPRzmkMZqaKQ36pw \_score: 1\_source: { id: 519fcbce820ea895037360e4 code  
: IO name: _BRITISH INDIAN OCEAN TERRITORY_ }}{ \_index: restdb \_type:  
country \_id: Ok9MHCr4RLqjH6oFLX92EA \_score: 1\_source: { id:  
519fcbce820ea8950373612a code: IN name: INDIA }}  
] } }

As, you can see, red coloured data, is not matching prefix query..  
Am i correct i need to do something else.., if not please help me to find  
out correct way to do so, else, give me go ahead, to post this as bug.

--  
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/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [April 3, 2015, 2:39pm UTC](https://discuss.elastic.co/t/prefix-query-result-problem/23082/2 "2015-04-03T14:39:35Z")

</div>

This is because of your analyzer: it splits "BRITISH INDIAN OCEAN  
TERRITORY" into ["british", "indian", "ocean", "territory"] and one of  
these terms ("indian") starts with "in".

What you probably want is to apply an analyzer that only does lowercasing,  
for instance by wrapping a keyword tokenizer and a lowercase token filter.

On Fri, Apr 3, 2015 at 2:34 PM, James Crone [arafay696@gmail.com](mailto:arafay696@gmail.com) wrote:

> prefix query is not returning the correct results..  
> in ISO Country data.. my query was
> 
> {"query":{"bool":{"must":[{"prefix":{"country.name":"in"}}  
> ],"must\_not":,"should":}},"from":0,"size":50,"sort":,"facets":{}}  
> and the returned result is:  
> { took: 3 timed\_out: false \_shards: { total: 5 successful: 5 failed: 0 }  
> hits: { total: 3 max\_score: 1 hits: [ { \_index: restdb \_type: country \_id  
> : sX3-aNGBQaOjo-L7zNj7qQ \_score: 1\_source: { id: 519fcbce820ea8950373612b  
> code: ID name: INDONESIA } }{ \_index: restdb \_type: country \_id: YMXpIxa  
> PRzmkMZqaKQ36pw \_score: 1\_source: { id: 519fcbce820ea895037360e4 code: IO  
> name: _BRITISH INDIAN OCEAN TERRITORY_ }}{ \_index: restdb \_type: country  
> \_id: Ok9MHCr4RLqjH6oFLX92EA \_score: 1\_source: { id:  
> 519fcbce820ea8950373612a code: IN name: INDIA }}  
> ] } }
> 
> As, you can see, red coloured data, is not matching prefix query..  
> Am i correct i need to do something else.., if not please help me to find  
> out correct way to do so, else, give me go ahead, to post this as bug.
> 
> --  
> 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/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien

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

---

<div class="post-metadata">

**Author:** ![James\_Crone](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@James\_Crone](https://discuss.elastic.co/u/James_Crone)\
**Post date:** [April 3, 2015, 3:05pm UTC](https://discuss.elastic.co/t/prefix-query-result-problem/23082/3 "2015-04-03T15:05:55Z")

</div>

I have try analyzer on specific index field by creating multifield. And it  
looks like:  
"Countries" : {  
"Properties" : {  
"Name" : {  
"Type" : "string",  
"Fields" : {  
"Untouched" : {  
"Type" : "string",  
"Index" : "no\_anylzer"  
}  
}  
}  
}

}

Is it true? If yes how can I query for this field?  
On Apr 3, 2015 7:39 PM, "Adrien Grand" [adrien@elastic.co](mailto:adrien@elastic.co) wrote:

> This is because of your analyzer: it splits "BRITISH INDIAN OCEAN  
> TERRITORY" into ["british", "indian", "ocean", "territory"] and one of  
> these terms ("indian") starts with "in".
> 
> What you probably want is to apply an analyzer that only does lowercasing,  
> for instance by wrapping a keyword tokenizer and a lowercase token filter.
> 
> On Fri, Apr 3, 2015 at 2:34 PM, James Crone [arafay696@gmail.com](mailto:arafay696@gmail.com) wrote:
> 
> > prefix query is not returning the correct results..  
> > in ISO Country data.. my query was
> > 
> > {"query":{"bool":{"must":[{"prefix":{"country.name":"in"}}  
> > ],"must\_not":,"should":}},"from":0,"size":50,"sort":,"facets":{}}  
> > and the returned result is:  
> > { took: 3 timed\_out: false \_shards: { total: 5 successful: 5 failed: 0 }  
> > hits: { total: 3 max\_score: 1 hits: [ { \_index: restdb \_type: country \_id  
> > : sX3-aNGBQaOjo-L7zNj7qQ \_score: 1\_source: { id: 519fcbc  
> > e820ea8950373612b code: ID name: INDONESIA } }{ \_index: restdb \_type:  
> > country \_id: YMXpIxaPRzmkMZqaKQ36pw \_score: 1\_source: { id:  
> > 519fcbce820ea895037360e4 code: IO name: _BRITISH INDIAN OCEAN TERRITORY_  
> > }}{ \_index: restdb \_type: country \_id: Ok9MHCr4RLqjH6oFLX92EA \_score: 1  
> > \_source: { id: 519fcbce820ea8950373612a code: IN name: INDIA }}  
> > ] } }
> > 
> > As, you can see, red coloured data, is not matching prefix query..  
> > Am i correct i need to do something else.., if not please help me to find  
> > out correct way to do so, else, give me go ahead, to post this as bug.
> > 
> > --  
> > 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/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Adrien
> 
> --  
> 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/pQaVv3-jMXs/unsubscribe](https://groups.google.com/d/topic/elasticsearch/pQaVv3-jMXs/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/CAO5%3DkAhbu1\_v5yxGqhVR%3DXeb7tf30b4OWGTmyP93eTQX6LQKgA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAO5%3DkAhbu1_v5yxGqhVR%3DXeb7tf30b4OWGTmyP93eTQX6LQKgA%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAO5%3DkAhbu1\_v5yxGqhVR%3DXeb7tf30b4OWGTmyP93eTQX6LQKgA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAO5%3DkAhbu1_v5yxGqhVR%3DXeb7tf30b4OWGTmyP93eTQX6LQKgA%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/CABjqkR8e8utBgKv%2B9Pxj4yx-Wts1a13buq-wLess%2Bt-\_NiZfkw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABjqkR8e8utBgKv%2B9Pxj4yx-Wts1a13buq-wLess%2Bt-_NiZfkw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![aaronmefford](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaronmefford/32/460_2.png) [@aaronmefford](https://discuss.elastic.co/u/aaronmefford)\
**Post date:** [April 3, 2015, 4:05pm UTC](https://discuss.elastic.co/t/prefix-query-result-problem/23082/4 "2015-04-03T16:05:04Z")

</div>

Have you tried Countries.Name.Untouched?

On Friday, April 3, 2015 at 9:06:17 AM UTC-6, James Crone wrote:

> I have try analyzer on specific index field by creating multifield. And it  
> looks like:  
> "Countries" : {  
> "Properties" : {  
> "Name" : {  
> "Type" : "string",  
> "Fields" : {  
> "Untouched" : {  
> "Type" : "string",  
> "Index" : "no\_anylzer"  
> }  
> }  
> }  
> }
> 
> }
> 
> Is it true? If yes how can I query for this field?  
> On Apr 3, 2015 7:39 PM, "Adrien Grand" \<[adr...@elastic.co](mailto:adr...@elastic.co) \<javascript:\>\>  
> wrote:
> 
> > This is because of your analyzer: it splits "BRITISH INDIAN OCEAN  
> > TERRITORY" into ["british", "indian", "ocean", "territory"] and one of  
> > these terms ("indian") starts with "in".
> > 
> > What you probably want is to apply an analyzer that only does  
> > lowercasing, for instance by wrapping a keyword tokenizer and a lowercase  
> > token filter.
> > 
> > On Fri, Apr 3, 2015 at 2:34 PM, James Crone \<[araf...@gmail.com](mailto:araf...@gmail.com)  
> > \<javascript:\>\> wrote:
> > 
> > > prefix query is not returning the correct results..  
> > > in ISO Country data.. my query was
> > > 
> > > {"query":{"bool":{"must":[{"prefix":{"country.name":"in"}}  
> > > ],"must\_not":,"should":}},"from":0,"size":50,"sort":,"facets":{}}  
> > > and the returned result is:  
> > > { took: 3 timed\_out: false \_shards: { total: 5 successful: 5 failed: 0  
> > > } hits: { total: 3 max\_score: 1 hits: [ { \_index: restdb \_type: country  
> > > \_id: sX3-aNGBQaOjo-L7zNj7qQ \_score: 1\_source: { id: 519fcbc  
> > > e820ea8950373612b code: ID name: INDONESIA } }{ \_index: restdb \_type:  
> > > country \_id: YMXpIxaPRzmkMZqaKQ36pw \_score: 1\_source: { id:  
> > > 519fcbce820ea895037360e4 code: IO name: _BRITISH INDIAN OCEAN TERRITORY_  
> > > }}{ \_index: restdb \_type: country \_id: Ok9MHCr4RLqjH6oFLX92EA \_score: 1  
> > > \_source: { id: 519fcbce820ea8950373612a code: IN name: INDIA }}  
> > > ] } }
> > > 
> > > As, you can see, red coloured data, is not matching prefix query..  
> > > Am i correct i need to do something else.., if not please help me to  
> > > find out correct way to do so, else, give me go ahead, to post this as bug.
> > > 
> > > --  
> > > 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/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > Adrien
> > 
> > --  
> > 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/pQaVv3-jMXs/unsubscribe](https://groups.google.com/d/topic/elasticsearch/pQaVv3-jMXs/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/CAO5%3DkAhbu1\_v5yxGqhVR%3DXeb7tf30b4OWGTmyP93eTQX6LQKgA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAO5%3DkAhbu1_v5yxGqhVR%3DXeb7tf30b4OWGTmyP93eTQX6LQKgA%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAO5%3DkAhbu1\_v5yxGqhVR%3DXeb7tf30b4OWGTmyP93eTQX6LQKgA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAO5%3DkAhbu1_v5yxGqhVR%3DXeb7tf30b4OWGTmyP93eTQX6LQKgA%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/e3101f56-5d4f-45f8-a09d-8e5b7f3e38ed%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e3101f56-5d4f-45f8-a09d-8e5b7f3e38ed%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![James\_Crone](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@James\_Crone](https://discuss.elastic.co/u/James_Crone)\
**Post date:** [April 3, 2015, 6:30pm UTC](https://discuss.elastic.co/t/prefix-query-result-problem/23082/5 "2015-04-03T18:30:22Z")

</div>

Yes I try. Actually I am using PHP API. So its return error. Here"s my  
query:  
$s = "{  
"Query" : {  
"Prefix" : { "countries.name.untouched" : "IN" }  
}

}";  
On Apr 3, 2015 9:05 PM, "Aaron Mefford" [aaron@mefford.org](mailto:aaron@mefford.org) wrote:

> Have you tried Countries.Name.Untouched?
> 
> On Friday, April 3, 2015 at 9:06:17 AM UTC-6, James Crone wrote:
> 
> > I have try analyzer on specific index field by creating multifield. And  
> > it looks like:  
> > "Countries" : {  
> > "Properties" : {  
> > "Name" : {  
> > "Type" : "string",  
> > "Fields" : {  
> > "Untouched" : {  
> > "Type" : "string",  
> > "Index" : "no\_anylzer"  
> > }  
> > }  
> > }  
> > }
> > 
> > }
> > 
> > Is it true? If yes how can I query for this field?  
> > On Apr 3, 2015 7:39 PM, "Adrien Grand" [adr...@elastic.co](mailto:adr...@elastic.co) wrote:
> > 
> > > This is because of your analyzer: it splits "BRITISH INDIAN OCEAN  
> > > TERRITORY" into ["british", "indian", "ocean", "territory"] and one of  
> > > these terms ("indian") starts with "in".
> > > 
> > > What you probably want is to apply an analyzer that only does  
> > > lowercasing, for instance by wrapping a keyword tokenizer and a lowercase  
> > > token filter.
> > > 
> > > On Fri, Apr 3, 2015 at 2:34 PM, James Crone [araf...@gmail.com](mailto:araf...@gmail.com) wrote:
> > > 
> > > > prefix query is not returning the correct results..  
> > > > in ISO Country data.. my query was
> > > > 
> > > > {"query":{"bool":{"must":[{"prefix":{"country.name":"in"}}],  
> > > > "must\_not":,"should":}},"from":0,"size":50,"sort":,"facets":{}}  
> > > > and the returned result is:  
> > > > { took: 3 timed\_out: false \_shards: { total: 5 successful: 5 failed: 0  
> > > > } hits: { total: 3 max\_score: 1 hits: [ { \_index: restdb \_type:  
> > > > country \_id: sX3-aNGBQaOjo-L7zNj7qQ \_score: 1\_source: { id: 519fcbc  
> > > > e820ea8950373612b code: ID name: INDONESIA } }{ \_index: restdb \_type:  
> > > > country \_id: YMXpIxaPRzmkMZqaKQ36pw \_score: 1\_source: { id:  
> > > > 519fcbce820ea895037360e4 code: IO name: _BRITISH INDIAN OCEAN  
> > > > TERRITORY_ }}{ \_index: restdb \_type: country \_id: Ok9MHCr4RLq  
> > > > jH6oFLX92EA \_score: 1\_source: { id: 519fcbce820ea8950373612a code: IN  
> > > > name: INDIA }}  
> > > > ] } }
> > > > 
> > > > As, you can see, red coloured data, is not matching prefix query..  
> > > > Am i correct i need to do something else.., if not please help me to  
> > > > find out correct way to do so, else, give me go ahead, to post this as bug.
> > > > 
> > > > --  
> > > > 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).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/13ab0a36-4e87-4cc2-89e2-0abe39f13668%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > Adrien
> > > 
> > > --  
> > > 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/](https://groups.google.com/d/)  
> > > topic/elasticsearch/pQaVv3-jMXs/unsubscribe.  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/CAO5%3DkAhbu1\_v5yxGqhVR%  
> > > 3DXeb7tf30b4OWGTmyP93eTQX6LQKgA%[40mail.gmail.com](http://40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAO5%3DkAhbu1\_v5yxGqhVR%3DXeb7tf30b4OWGTmyP93eTQX6LQKgA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAO5%3DkAhbu1_v5yxGqhVR%3DXeb7tf30b4OWGTmyP93eTQX6LQKgA%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/pQaVv3-jMXs/unsubscribe](https://groups.google.com/d/topic/elasticsearch/pQaVv3-jMXs/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/e3101f56-5d4f-45f8-a09d-8e5b7f3e38ed%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e3101f56-5d4f-45f8-a09d-8e5b7f3e38ed%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/e3101f56-5d4f-45f8-a09d-8e5b7f3e38ed%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e3101f56-5d4f-45f8-a09d-8e5b7f3e38ed%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 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/CABjqkR-%2BNNq\_dWeTrax5400URokLi\_bSf6G4r4HxKZC%3DD%3DnYTw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABjqkR-%2BNNq_dWeTrax5400URokLi_bSf6G4r4HxKZC%3DD%3DnYTw%40mail.gmail.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, 12:21am UTC](https://discuss.elastic.co/t/prefix-query-result-problem/23082/6 "2017-07-06T00:21:47Z")

</div>


