File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
server/src/main/java/org/elasticsearch/index/query Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -231,12 +231,16 @@ public BoolQueryBuilder adjustPureNegative(boolean adjustPureNegative) {
231231 }
232232
233233 /**
234- * @return the setting for the omit_zero_term_query setting in this query
234+ * @return the setting for the adjust_pure_negative setting in this query
235235 */
236236 public boolean adjustPureNegative () {
237237 return this .adjustPureNegative ;
238238 }
239239
240+ /**
241+ * Decide whether to omit query to use in case no query terms are available, e.g. after analysis removed them.
242+ * The default is <code>true</code>.
243+ */
240244 public BoolQueryBuilder omitZeroTermQuery (boolean omitZeroTermQuery ) {
241245 this .omitZeroTermQuery = omitZeroTermQuery ;
242246 return this ;
You can’t perform that action at this time.
0 commit comments