Logic

Connect search elements and further refine the search query.

The logic component is used to connect search elements and further refine the search query. Logic operators can include AND, OR, and NOT. They can be used to combine multiple search elements or to exclude certain search elements from the search results.

AND

Both search elements must be present in the search result.

class.name = 'car' AND annotation = 'modelabc'

OR

At least one of the search elements must be present in the search result.

class.name = 'car' OR class.name = 'truck'

NOT

The specified search element must not be present in the search result.

NOT class.name = 'car'

()

The quotation marks can be used to indicate priority or precedence.

This is particularly important when combining multiple elements and logic operators, as it allows users to specify the order in which the operations should be executed.

When using quotation marks, the elements or expressions enclosed within them will be processed first. This ensures that the intended priority is maintained, especially when multiple AND, OR, and NOT operators are used in a single search query.

NOT (class.name = 'truck' OR class.name = 'car')

Last updated