Examples of using the key restrict operator

This topic uses examples to explain how to use the key restrict operator (:) in queries that contain Boolean search.

If you have two attributes, Actor and Director, you can issue a query that involves a Boolean expression consisting of both the Actor and Director attributes (for example, "Search for records where the director was DeNiro and the actor does not include Pacino."). The two attributes do not need to be included in the same search interface.

Users can successfully conduct a search on this using the following query which will execute the desired result:
Actor: Deniro AND NOT Director: Pacino

This is useful because it allows you to search for attributes that are outside of the search interface configuration.

The key restrict operator (:) binds only to the words or expressions adjacent to it. The resulting search is case-sensitive. For example, the query:
car maker : aston martin 
will search for the word car against the specified search interface, the word aston against the attribute named maker, and martin against the specified search interface.
If the intention was to search against the attribute named "car maker", you must alter the query to one of the following: