|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.impl.DefaultCompassQueryBuilder.DefaultCompassBooleanQueryBuilder
public class DefaultCompassQueryBuilder.DefaultCompassBooleanQueryBuilder
| Constructor Summary | |
|---|---|
DefaultCompassQueryBuilder.DefaultCompassBooleanQueryBuilder(SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder queryBuilder,
InternalCompassSession session)
|
|
| 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. |
CompassQuery |
toQuery()
Create the query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCompassQueryBuilder.DefaultCompassBooleanQueryBuilder(SearchEngineQueryBuilder.SearchEngineBooleanQueryBuilder queryBuilder,
InternalCompassSession session)
| Method Detail |
|---|
public CompassQueryBuilder.CompassBooleanQueryBuilder addMust(CompassQuery query)
CompassQueryBuilder.CompassBooleanQueryBuilder
addMust in interface CompassQueryBuilder.CompassBooleanQueryBuilderquery - The query to add
public CompassQueryBuilder.CompassBooleanQueryBuilder addMustNot(CompassQuery query)
CompassQueryBuilder.CompassBooleanQueryBuilder
addMustNot in interface CompassQueryBuilder.CompassBooleanQueryBuilderquery - The query to add
public CompassQueryBuilder.CompassBooleanQueryBuilder addShould(CompassQuery query)
CompassQueryBuilder.CompassBooleanQueryBuildershould subqueries, at least one of the queries must
appear in the matching hits.
addShould in interface CompassQueryBuilder.CompassBooleanQueryBuilderquery - The query to add
public CompassQueryBuilder.CompassBooleanQueryBuilder setMinimumNumberShouldMatch(int min)
CompassQueryBuilder.CompassBooleanQueryBuilderBy 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.
setMinimumNumberShouldMatch in interface CompassQueryBuilder.CompassBooleanQueryBuilderpublic CompassQuery toQuery()
CompassQueryBuilder.ToCompassQuery
toQuery in interface CompassQueryBuilder.ToCompassQuery
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||