elasticsearch/elasticsearch — Issue #1420: minimum_number_should_match in a query_string
Author: MagmaRules
Created: 2011-10-24 19:12:13+00:00
State: open

Just like you can use minimum_number_should_match in a boolean query: http://www.elasticsearch.org/guide/reference/query-dsl/bool-query.html .

It would be awsome if we could do the following:

"query" : {
"query_string" : {
"query" : "author",
"fields" : [ "Smith" ],
"use_dis_max" : true,
"minimum_should_match": 3
}
}

Solr for example supports the following format: http://lucene.apache.org/solr/api/org/apache/solr/util/doc-files/min-should-match.html .