The Open API specification for Synapse is now available for download!

Download Open API Spec

BoolQuery

org.sagebionetworks.repo.model.search.dsl.BoolQuery

A bool compound clause — combines sub-clauses with boolean logic.

Field Type Description
must ARRAY<Query> Sub-clauses that must all match (scored). Logical AND.
should ARRAY<Query> Sub-clauses that should match (scored). See minimum_should_match.
must_not ARRAY<Query> Sub-clauses that must not match (filter context, not scored).
filter ARRAY<Query> Sub-clauses that must all match in filter context (not scored).
minimum_should_match OBJECT Optional. How many should clauses must match. An integer or a percentage / formula string.
adjust_pure_negative BOOLEAN Optional. Whether to automatically add a match_all when only negative clauses are present. Default true.
boost NUMBER Optional. Multiplier for the relevance score of this clause. Default 1.0.
_name STRING Optional. Label echoed back in matched-queries metadata.