public class BoolQueryBuilder extends Object
Constructor and Description |
---|
BoolQueryBuilder() |
Modifier and Type | Method and Description |
---|---|
com.alibaba.fastjson.JSONObject |
build()
Compiles the boolen query into a constraint.
|
BoolQueryBuilder |
filter(ElasticConstraint filter)
Adds a FILTER constraint for the given query.
|
BoolQueryBuilder |
filter(com.alibaba.fastjson.JSONObject filter)
Adds a FILTER constraint for the given query.
|
BoolQueryBuilder |
must(ElasticConstraint filter)
Adds a MUST constraint for the given query.
|
BoolQueryBuilder |
must(com.alibaba.fastjson.JSONObject filter)
Adds a MUST constraint for the given query.
|
BoolQueryBuilder |
mustNot(ElasticConstraint filter)
Adds a MUST NOT constraint for the given query.
|
BoolQueryBuilder |
mustNot(com.alibaba.fastjson.JSONObject filter)
Adds a MUST NOT constraint for the given query.
|
BoolQueryBuilder |
should(ElasticConstraint filter)
Adds a SHOULD constraint for the given query.
|
BoolQueryBuilder |
should(com.alibaba.fastjson.JSONObject filter)
Adds a SHOULD constraint for the given query.
|
public BoolQueryBuilder must(com.alibaba.fastjson.JSONObject filter)
filter
- the filter to addpublic BoolQueryBuilder must(ElasticConstraint filter)
filter
- the filter to addpublic BoolQueryBuilder mustNot(com.alibaba.fastjson.JSONObject filter)
filter
- the filter to addpublic BoolQueryBuilder mustNot(ElasticConstraint filter)
filter
- the filter to addpublic BoolQueryBuilder should(com.alibaba.fastjson.JSONObject filter)
filter
- the filter to addpublic BoolQueryBuilder should(ElasticConstraint filter)
filter
- the filter to addpublic BoolQueryBuilder filter(com.alibaba.fastjson.JSONObject filter)
A filter is like a MUST clause but without scoring.
filter
- the filter to addpublic BoolQueryBuilder filter(ElasticConstraint filter)
A filter is like a MUST clause but without scoring.
filter
- the filter to addpublic com.alibaba.fastjson.JSONObject build()
Copyright © 2018. All rights reserved.