# Strange behaviour on the phrase\_prefix query

**URL:** https://discuss.elastic.co/t/strange-behaviour-on-the-phrase-prefix-query/25531
**Category:** Elasticsearch
**Created:** [July 14, 2015, 3:47pm UTC](https://discuss.elastic.co/t/strange-behaviour-on-the-phrase-prefix-query/25531 "2015-07-14T15:47:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Slava\_G](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Slava\_G](https://discuss.elastic.co/u/Slava_G)
#### Post date: [July 14, 2015, 3:47pm UTC](https://discuss.elastic.co/t/strange-behaviour-on-the-phrase-prefix-query/25531/1 "2015-07-14T15:47:28Z")

</div>

Hi,  
I'm trying to run next query on the index:  
"match": {  
"folders": {  
"query": "aqmkagm5mdizodk0ltg2ngbjltqxn2etotnmmc0wywy4m2vkmtg1mwealgaaaxfts4itp+bbtfaokkhwqimbaj1rfnbjd7voqhuq+f8apdiaaaibcqaaaa==",  
"type": "phrase\_prefix",  
"operator": "OR",  
"slop": 3,  
"max\_expansions": 20  
}  
}

and it's returns nothing, but when I run this query :  
"match": {  
"folders": {  
"query": "aqmkagm5mdizodk0ltg2ngbjltqxn2etotnmmc0wywy4m2vkmtg1mwealgaaaxfts4itp+bbtfaokkhwqimbaj1rfnbjd7voqhuq+f8apdiaaaibcqaaaa=="  
}  
}

it's return results.  
Am I missing something ? But, as far as I understand phrase\_prefix should return in this case as well ?

Thanks

---

<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:01am UTC](https://discuss.elastic.co/t/strange-behaviour-on-the-phrase-prefix-query/25531/2 "2017-07-06T00:01:33Z")

</div>


