Match_phrase_prefix vs query_string


(Alexander Ott) #1

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?


(system) #2

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