# \[BUG?\] match\_phrase\_prefix failing on v1.1.0, working on 1.0.2

**URL:** https://discuss.elastic.co/t/bug-match-phrase-prefix-failing-on-v1-1-0-working-on-1-0-2/16609
**Category:** Elasticsearch
**Created:** [March 26, 2014, 12:39pm UTC](https://discuss.elastic.co/t/bug-match-phrase-prefix-failing-on-v1-1-0-working-on-1-0-2/16609 "2014-03-26T12:39:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![crutch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crutch/32/414_2.png) [@crutch](https://discuss.elastic.co/u/crutch)
#### Post date: [March 26, 2014, 12:39pm UTC](https://discuss.elastic.co/t/bug-match-phrase-prefix-failing-on-v1-1-0-working-on-1-0-2/16609/1 "2014-03-26T12:39:50Z")

</div>

Hello everyone,

I am using match\_phrase\_prefix query and was surprised that after updating  
to 1.1.0 my tests got broken.

Here is a small test case which works on 1.0.2 (returns a hit) and fails (0  
hits) on 1.1.0.

> <https://gist.github.com/crutch/04cd5acbd84eee04d683>

I did not find any mention about breaking changes concerning  
match\_phrase\_prefix on a web page...

Is there something I have missed or is it a bug?

--  
Michal Barla

--  
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/0bfc9aaa-4df9-45d6-988a-b7e8a2b17fed%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0bfc9aaa-4df9-45d6-988a-b7e8a2b17fed%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)
#### Post date: [March 26, 2014, 1:49pm UTC](https://discuss.elastic.co/t/bug-match-phrase-prefix-failing-on-v1-1-0-working-on-1-0-2/16609/2 "2014-03-26T13:49:35Z")

</div>

Yes, it's a bug and will be fixed shortly. Related to this:

> <https://github.com/elastic/elasticsearch/issues/5437>

--  
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/03a290c6-4835-4bf7-968e-b81f7361e639%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/03a290c6-4835-4bf7-968e-b81f7361e639%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![crutch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crutch/32/414_2.png) [@crutch](https://discuss.elastic.co/u/crutch)
#### Post date: [March 26, 2014, 2:00pm UTC](https://discuss.elastic.co/t/bug-match-phrase-prefix-failing-on-v1-1-0-working-on-1-0-2/16609/3 "2014-03-26T14:00:28Z")

</div>

OK, thanks. I've found that #5437 (it is linked from release notes) but  
since it is discussing slopes I did not consider it relevant for my case.

On Wednesday, March 26, 2014 2:49:35 PM UTC+1, Binh Ly wrote:

> Yes, it's a bug and will be fixed shortly. Related to this:
> 
> [match\_phrase\_prefix no longer supports slop · Issue #5437 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/5437)

--  
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/45b1cd17-8c90-4146-b221-3e255a5b37cf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/45b1cd17-8c90-4146-b221-3e255a5b37cf%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)
#### Post date: [March 26, 2014, 2:09pm UTC](https://discuss.elastic.co/t/bug-match-phrase-prefix-failing-on-v1-1-0-working-on-1-0-2/16609/4 "2014-03-26T14:09:51Z")

</div>

I will open another issue for this shortly. 🙂

--  
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/f928611e-47af-4e3a-98b0-0b0baa29b628%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f928611e-47af-4e3a-98b0-0b0baa29b628%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![simonw\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simonw_2/32/1130_2.png) [@simonw\_2](https://discuss.elastic.co/u/simonw_2)
#### Post date: [March 26, 2014, 2:17pm UTC](https://discuss.elastic.co/t/bug-match-phrase-prefix-failing-on-v1-1-0-working-on-1-0-2/16609/5 "2014-03-26T14:17:27Z")

</div>

It's actually unrelated to this issue mentioned above. It got broken due  
to [Added `cross_fields` type to multi\_match query by s1monw · Pull Request #5005 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/pull/5005)  
and there is an issue open  
here: [match\_phrase\_prefix broken · Issue #5551 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/5551) a fix is  
right here: [Convert TermQuery to PrefixQuery if PHRASE\_PREFIX is set by s1monw · Pull Request #5553 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/5553)

simon  
On Wednesday, March 26, 2014 3:00:28 PM UTC+1, Michal Barla wrote:

> OK, thanks. I've found that #5437 (it is linked from release notes) but  
> since it is discussing slopes I did not consider it relevant for my case.
> 
> On Wednesday, March 26, 2014 2:49:35 PM UTC+1, Binh Ly wrote:
> 
> > Yes, it's a bug and will be fixed shortly. Related to this:
> > 
> > [match\_phrase\_prefix no longer supports slop · Issue #5437 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/5437)

--  
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/dbcdb2ae-d030-4b25-b6d1-a47e7f15986b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dbcdb2ae-d030-4b25-b6d1-a47e7f15986b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 1:40am UTC](https://discuss.elastic.co/t/bug-match-phrase-prefix-failing-on-v1-1-0-working-on-1-0-2/16609/6 "2017-07-06T01:40:33Z")

</div>


