Use minimum_should_match in search with java client

looking all over, I couldn't find a way to include minimum_should_match param our match query when using the java client. we are running on elastic search 2.4.
this become a major need now in our system and reindexing/converting the field to not_analyzed is not an option since re-indexing our index takes few days now.

See https://artifacts.elastic.co/javadoc/org/elasticsearch/elasticsearch/6.1.1/org/elasticsearch/index/query/BoolQueryBuilder.html#minimumShouldMatch-int-

1 Like

so simple :slight_smile: thanks for the hint

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