# Hi is there any difference between match\_phrase and match\_phrase\_prefix?

**URL:** https://discuss.elastic.co/t/hi-is-there-any-difference-between-match-phrase-and-match-phrase-prefix/293009
**Category:** Elasticsearch
**Created:** [December 28, 2021, 3:51am UTC](https://discuss.elastic.co/t/hi-is-there-any-difference-between-match-phrase-and-match-phrase-prefix/293009 "2021-12-28T03:51:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cnwdoug23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cnwdoug23/32/96378_2.png) [@cnwdoug23](https://discuss.elastic.co/u/cnwdoug23)
#### Post date: [December 28, 2021, 3:51am UTC](https://discuss.elastic.co/t/hi-is-there-any-difference-between-match-phrase-and-match-phrase-prefix/293009/1 "2021-12-28T03:51:17Z")

</div>

HI is there a difference between using match\_phrase and match\_phrase\_prefix?  
When do we use one over the other? thanks in advance.

---

<div class="post-metadata">

### Author: ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)
#### Post date: [December 28, 2021, 10:09am UTC](https://discuss.elastic.co/t/hi-is-there-any-difference-between-match-phrase-and-match-phrase-prefix/293009/2 "2021-12-28T10:09:09Z")

</div>

Hi.[This comment](https://discuss.elastic.co/t/why-does-elasticsearch-return-inconsistent-result-on-version-7-8-1-and-return-correct-result-on-5-6-7-for-the-same-match-phrase-prefix-query-how-can-i-get-consistent-result-on-elasticsearch-7-8-1/290722/2) is relevant.

---

<div class="post-metadata">

### Author: ![cnwdoug23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cnwdoug23/32/96378_2.png) [@cnwdoug23](https://discuss.elastic.co/u/cnwdoug23)
#### Post date: [December 30, 2021, 8:59am UTC](https://discuss.elastic.co/t/hi-is-there-any-difference-between-match-phrase-and-match-phrase-prefix/293009/3 "2021-12-30T08:59:28Z")

</div>

thanks for pointing out. sorry if it is too fundamental. newbie here.

---

<div class="post-metadata">

### Author: ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)
#### Post date: [December 30, 2021, 12:11pm UTC](https://discuss.elastic.co/t/hi-is-there-any-difference-between-match-phrase-and-match-phrase-prefix/293009/4 "2021-12-30T12:11:25Z")

</div>

No worries. Glad it was useful

---

<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: [January 27, 2022, 12:12pm UTC](https://discuss.elastic.co/t/hi-is-there-any-difference-between-match-phrase-and-match-phrase-prefix/293009/5 "2022-01-27T12:12:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
