# Match\_phrase\_prefix vs query\_string

**URL:** <https://discuss.elastic.co/t/match-phrase-prefix-vs-query-string/66541>\
**Category:** Elasticsearch\
**Created:** [November 18, 2016, 12:57pm UTC](https://discuss.elastic.co/t/match-phrase-prefix-vs-query-string/66541 "2016-11-18T12:57:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Ott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexander_ott/32/105905_2.png) [@Alexander\_Ott](https://discuss.elastic.co/u/Alexander_Ott)\
**Post date:** [November 18, 2016, 12:57pm UTC](https://discuss.elastic.co/t/match-phrase-prefix-vs-query-string/66541/1 "2016-11-18T12:57:49Z")

</div>

The following queries returns different results in Elasticsearch 2.4.0

```
"query": {
      "bool": {
         "must": {
            "query_string": {
               "query": "roseng*",
               "default_field": "_all",
               "fuzzy_max_expansions": 10000,
               "analyze_wildcard": true
            }
         }
      }
   }

```

returns 380 documents

```
 "query": {
      "match_phrase_prefix": {
         "_all": {
            "query": "roseng",
            "max_expansions": 10000
         }
      }
   }

```

returns 0 documents

Any hint why the match\_phrase\_prefix doesn't return the same results?

---

<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:** [December 16, 2016, 12:58pm UTC](https://discuss.elastic.co/t/match-phrase-prefix-vs-query-string/66541/2 "2016-12-16T12:58:03Z")

</div>

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