Use minimum_should_match in search with java client


(Roi Adadi) #1

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.


(David Pilato) #2

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


(Roi Adadi) #3

so simple :slight_smile: thanks for the hint


(system) #4

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