next up previous contents index
Next: Query options selected Up: 5.3 Querying a Broker Previous: 5.3 Querying a Broker

Example queries

 

Simple keyword search query:
Arizona

This query returns all objects in the Broker containing the word Arizona.

Boolean query:
Arizona AND desert

This query returns all objects in the Broker that contain both words anywhere in the object in any order.

Phrase query:
"Arizona desert"

This query returns all objects in the Broker that contain Arizona desert as a phrase. Notice that you need to put double quotes around the phrase.

Boolean queries with phrases:
"Arizona desert" AND windsurfing

Simple Structured query:
Title : windsurfing

This query returns all objects in the Broker where the Title attribute contains the value windsurfing.

Complex query:
"Arizona desert" AND (Title : windsurfing)

This query returns all objects in the Broker that contain the phrase Arizona desert and where the Title attribute of the same object contains the value windsurfing.

 


Duane Wessels
Wed Jan 31 23:46:21 PST 1996