Class: BooleanQuery

SearchQuery. BooleanQuery


<private> new BooleanQuery()

Members


boost

boost defines the amount to boost this query.

Methods


must(query)

must specifies a predicate query which much match.

Parameters:
Name Type Description
query SearchQuery.ConjunctionQuery | SearchQuery.Query
Returns:
Type
SearchQuery.BooleanQuery

mustNot(query)

mustNot specifies a predicate query which must not match.

Parameters:
Name Type Description
query SearchQuery.DisjunctionQuery | SearchQuery.Query
Returns:
Type
SearchQuery.BooleanQuery

should(query)

should specifies a predicate query which should match.

Parameters:
Name Type Description
query SearchQuery.DisjunctionQuery | SearchQuery.Query
Returns:
Type
SearchQuery.BooleanQuery

shouldMin(shouldMin)

shouldMin specifies the minimum score for should predicate matches.

Parameters:
Name Type Description
shouldMin number
Returns:
Type
SearchQuery.BooleanQuery

<private> toJSON()

Serializes this query to JSON for network dispatch.

Returns:
Type
Object