# Mimum\_match broken in 0.19.0 or is this expected behavior?

**URL:** <https://discuss.elastic.co/t/mimum-match-broken-in-0-19-0-or-is-this-expected-behavior/6915>\
**Category:** Elasticsearch\
**Created:** [March 6, 2012, 4:50pm UTC](https://discuss.elastic.co/t/mimum-match-broken-in-0-19-0-or-is-this-expected-behavior/6915 "2012-03-06T16:50:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garth](https://avatars.discourse-cdn.com/v4/letter/g/ba9def/32.png) [@Garth](https://discuss.elastic.co/u/Garth)\
**Post date:** [March 6, 2012, 4:50pm UTC](https://discuss.elastic.co/t/mimum-match-broken-in-0-19-0-or-is-this-expected-behavior/6915/1 "2012-03-06T16:50:35Z")

</div>

I run this query in 0.18.6 and it works fine.

curl -XGET '[http://localhost:9200/messages/data/\_search?pretty=true](http://localhost:9200/messages/data/_search?pretty=true)' -  
d '{  
"fields" : ["genId"],  
"filter" : {  
"terms" : { "tags" : ["green","red"], "minimum\_match" : 1 }  
}  
}'

Run this query in 0.19.0 ( rebuilt indexes ) and I get the following  
error:

"error" : "SearchPhaseExecutionException[Failed to execute phase  
[query], total failure; shardFailures {[Tzo9OeseRJKIgtJnwpv8Jw]  
[messages][0]: SearchParseException[[messages][0]: from[-1],size[-1]:  
Parse Failure [Failed to parse source [{\n "fields" : ["genId"],  
\n "filter" : {\n "terms" : { "tags" : [ "green","red  
" ], "minimum\_match" : 1 }\n }\n}]]]; nested:  
QueryParsingException[[messages] [terms] filter does not support  
[minimum\_match]]; }{[Tzo9OeseRJKIgtJnwpv8Jw][messages][3]:  
SearchParseException[[messages][3]: from[-1],size[-1]: Parse Failure  
[Failed to parse source [{\n "fields" : ["genId"],\n "filter  
" : {\n "terms" : { "tags" : ["green","red"],  
"minimum\_match" : 1 }\n }\n}]]]; nested:  
QueryParsingException[[messages] [terms] filter does not support  
[minimum\_match]]; }{[Tzo9OeseRJKIgtJnwpv8Jw][messages][4]:  
SearchParseException[[messages][4]: from[-1],size[-1]: Parse Failure  
[Failed to parse source [{\n "fields" : ["genId"],\n "filter  
" : {\n "terms" : { "tags" : ["green","red"],  
"minimum\_match" : 1 }\n }\n}]]]; nested:  
QueryParsingException[[messages] [terms] filter does not support  
[minimum\_match]]; }{[Tzo9OeseRJKIgtJnwpv8Jw][messages][1]:  
SearchParseException[[messages][1]: from[-1],size[-1]: Parse Failure  
[Failed to parse source [{\n "fields" : ["genId"],\n "filter  
" : {\n "terms" : { "tags" : ["green","red"],  
"minimum\_match" : 1 }\n }\n}]]]; nested:  
QueryParsingException[[messages] [terms] filter does not support  
[minimum\_match]]; }{[Tzo9OeseRJKIgtJnwpv8Jw][messages][2]:  
SearchParseException[[messages][2]: from[-1],size[-1]: Parse Failure  
[Failed to parse source [{\n "fields" : ["genId"],\n "filter  
" : {\n "terms" : { "tags" : ["green","red"],  
"minimum\_match" : 1 }\n }\n}]]]; nested:  
QueryParsingException[[messages] [terms] filter does not support  
[minimum\_match]]; }]",  
"status" : 500

Thanks,

Garth

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 6, 2012, 8:54pm UTC](https://discuss.elastic.co/t/mimum-match-broken-in-0-19-0-or-is-this-expected-behavior/6915/2 "2012-03-06T20:54:08Z")

</div>

Thats because minimum\_match is not a valid parameter to terms filter…, in 0.19, we try and tell you better that thats not a valid flag.

On Tuesday, March 6, 2012 at 6:50 PM, Garth wrote:

> I run this query in 0.18.6 and it works fine.
> 
> curl -XGET '[http://localhost:9200/messages/data/\_search?pretty=true](http://localhost:9200/messages/data/_search?pretty=true)' -  
> d '{  
> "fields" : ["genId"],  
> "filter" : {  
> "terms" : { "tags" : ["green","red"], "minimum\_match" : 1 }  
> }  
> }'
> 
> Run this query in 0.19.0 ( rebuilt indexes ) and I get the following  
> error:
> 
> "error" : "SearchPhaseExecutionException[Failed to execute phase  
> [query], total failure; shardFailures {[Tzo9OeseRJKIgtJnwpv8Jw]  
> [messages][0]: SearchParseException[[messages][0]: from[-1],size[-1]:  
> Parse Failure [Failed to parse source [{\n "fields" : ["genId"],  
> \n "filter" : {\n "terms" : { "tags" : [ "green","red  
> " ], "minimum\_match" : 1 }\n }\n}]]]; nested:  
> QueryParsingException[[messages] [terms] filter does not support  
> [minimum\_match]]; }{[Tzo9OeseRJKIgtJnwpv8Jw][messages][3]:  
> SearchParseException[[messages][3]: from[-1],size[-1]: Parse Failure  
> [Failed to parse source [{\n "fields" : ["genId"],\n "filter  
> " : {\n "terms" : { "tags" : ["green","red"],  
> "minimum\_match" : 1 }\n }\n}]]]; nested:  
> QueryParsingException[[messages] [terms] filter does not support  
> [minimum\_match]]; }{[Tzo9OeseRJKIgtJnwpv8Jw][messages][4]:  
> SearchParseException[[messages][4]: from[-1],size[-1]: Parse Failure  
> [Failed to parse source [{\n "fields" : ["genId"],\n "filter  
> " : {\n "terms" : { "tags" : ["green","red"],  
> "minimum\_match" : 1 }\n }\n}]]]; nested:  
> QueryParsingException[[messages] [terms] filter does not support  
> [minimum\_match]]; }{[Tzo9OeseRJKIgtJnwpv8Jw][messages][1]:  
> SearchParseException[[messages][1]: from[-1],size[-1]: Parse Failure  
> [Failed to parse source [{\n "fields" : ["genId"],\n "filter  
> " : {\n "terms" : { "tags" : ["green","red"],  
> "minimum\_match" : 1 }\n }\n}]]]; nested:  
> QueryParsingException[[messages] [terms] filter does not support  
> [minimum\_match]]; }{[Tzo9OeseRJKIgtJnwpv8Jw][messages][2]:  
> SearchParseException[[messages][2]: from[-1],size[-1]: Parse Failure  
> [Failed to parse source [{\n "fields" : ["genId"],\n "filter  
> " : {\n "terms" : { "tags" : ["green","red"],  
> "minimum\_match" : 1 }\n }\n}]]]; nested:  
> QueryParsingException[[messages] [terms] filter does not support  
> [minimum\_match]]; }]",  
> "status" : 500
> 
> Thanks,
> 
> Garth

---

<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, 3:37am UTC](https://discuss.elastic.co/t/mimum-match-broken-in-0-19-0-or-is-this-expected-behavior/6915/3 "2017-07-06T03:37:03Z")

</div>


