com.senseidb.search.client.req.query.BoolQuery Maven / Gradle / Ivy
The newest version!
package com.senseidb.search.client.req.query;
import java.util.List;
import com.senseidb.search.client.json.CustomJsonHandler;
import com.senseidb.search.client.json.JsonField;
/**
*
* A query that matches documents matching boolean combinations of other
* queries. Similar in concept to Boolean query, except that the clauses are
* other filters. Can be placed within queries that accept a filter.
*
*
*
*
*/
@CustomJsonHandler(QueryJsonHandler.class)
public class BoolQuery extends Query {
List must;
List must_not;
List should;
@JsonField("minimum_number_should_match")
Integer minimumNumberShouldMatch;
double boost;
Boolean disableCoord;
public BoolQuery(List must, List must_not, List should,
Integer minimumNumberShouldMatch, double boost, Boolean disableCoord) {
super();
this.must = must;
this.must_not = must_not;
this.should = should;
this.minimumNumberShouldMatch = minimumNumberShouldMatch;
this.boost = boost;
this.disableCoord = disableCoord;
}
}