|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface CompassQueryBuilder.CompassBooleanQueryBuilder
A boolean query builder. Used to construct query that will return hits that are the matching boolean combinations of other queries.
| Method Summary | |
|---|---|
CompassQueryBuilder.CompassBooleanQueryBuilder |
addMust(CompassQuery query)
Hits must match the given query. |
CompassQueryBuilder.CompassBooleanQueryBuilder |
addMustNot(CompassQuery query)
Hits must not match the given query. |
CompassQueryBuilder.CompassBooleanQueryBuilder |
addShould(CompassQuery query)
Hits should match the given query. |
CompassQueryBuilder.CompassBooleanQueryBuilder |
setMinimumNumberShouldMatch(int min)
Specifies a minimum number of the optional BooleanClauses which must be satisfied. |
| Methods inherited from interface org.compass.core.CompassQueryBuilder.ToCompassQuery |
|---|
toQuery |
| Method Detail |
|---|
CompassQueryBuilder.CompassBooleanQueryBuilder addMust(CompassQuery query)
query - The query to add
CompassQueryBuilder.CompassBooleanQueryBuilder addMustNot(CompassQuery query)
query - The query to add
CompassQueryBuilder.CompassBooleanQueryBuilder addShould(CompassQuery query)
should subqueries, at least one of the queries must
appear in the matching hits.
query - The query to add
CompassQueryBuilder.CompassBooleanQueryBuilder setMinimumNumberShouldMatch(int min)
By default no optional clauses are necessary for a match (unless there are no required clauses). If this method is used, then the specified number of clauses is required.
Use of this method is totally independent of specifying that any specific clauses are required (or prohibited). This number will only be compared against the number of matching optional clauses.
EXPERT NOTE: Using this method may force collecting docs in order, regardless of whether setAllowDocsOutOfOrder(true) has been called.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||