Which logical operators can I use in search queries?

NOT is the only logical operator supported.

For example, to see all Events labeled suspicious that haven't yet been labeled reviewed, use the query:

suspicious NOT reviewed

or, use the alternate symbol for the NOT operator, the minus sign immediately prefixing the term:

suspicious -reviewed

NOT criteria apply to cameras, zones, and labels. For example, if a building with 10 floors has cameras named "Elevator Floor 1", "Elevator Floor 2", etc..., then you can search for people only floors 1 through 8 with the NOT operators in this query:

people NOT "Elevator Floor 9" NOT "Elevator Floor 10"

or, equivalently:

people -"Elevator Floor 9" -"Elevator Floor 10"

Currently, NOT operator criteria are case sensitive, and multi-word terms must be quoted.

 


Please note: the NOT operator is currently a Beta feature that hasn't yet been launched to Box firmware, so the query matching operators that run on Box for lazy indexing and pubsub Hooks triggered on Box ignore NOT operators until the general firmware release to be completed by April 2019.


As background, other logical operators are inferred from the combination of cameras, zones, objects, and colors to avoid having to construct queries using logical operators.

For example, if there are zones named "sidewalk" and "entrance" and a camera named "Liverpool", then the query:
people red blue approaching Liverpool sidewalk entrance
is interpreted without using logical operators as the query as:
people AND (red OR blue) AND approaching AND Liverpool AND (sidewalk OR entrance)

Have more questions? Submit a request

Comments