Skip to main content
A query that matches documents based on boolean combinations of other queries. The boolean query maps to Lucene BooleanQuery.

Boolean query array parameters

When used within a bool query array, each object can contain: It is built using one or more boolean clauses, each clause with a typed occurrence. The occurrence types are:

Occur

Boost

Boost values that are less than 1.0 will give less importance to this query compared to other ones while values that are greater than 1.0 will give more importance to the scores returned by this query.

Examples

Boolean query with occur

This query will return top documents that are both of type NODE and have the highest score value.

Boolean query with boost

The boost value must be greater than zero.
The final score of the matched document is calculated as proportional to the boost values.