This section describes how users can search in zones when the zone filter is implemented.
IN
operator of the query language
The syntax of the IN operator is:
query
) <IN> zone
query
) <IN> (zone1, zone2, ...
)
query
represents any query expression. To preclude ambiguity, the query expression must be placed within parentheses. The zone
variables represent the zone names. The zone name supplied must match the zone names defined in your collections. If more than one zone is to be searched, they must appear in a comma-separated list with parentheses surrounding them.
To search in the zone named
summary
using the topic named safety
, use the following query expression:
summary
and title
, using the topic named safety
, use the following query expression syntax:
summary
using the query "safety, environmental regulation," use the following query expression:
summary
and title
zones, use the following query expression:
IN
operator, and no zones have been defined for your collections, the search yields no results. No documents will be retrieved when zones have not been defined.
VdkQParserNewArgRec
called defaultZone
. This has the same effect as applying <IN> zone
to the end of the custom query you define. This field should point to a string that is the zone specification for the search. You can leave this field NULL if you do not want to restrict the search to a particular zone. You might use the
defaultZone
field when defining a form search, and restrict each field in the form to search within one particular zone:
- To: ____________ (search for this in the To zone)
- Subject: ____________ (search for this in the Subject zone)
- From: ____________ (search for this in the From zone)
<title>
tag extracted as a zone), or it may occur multiple times in a document (as in an <h2>
tag extracted as a zone). When a zone occurs more than once in a document, you can search for words that appear together in the same occurrence of the zone, or you can search for words without respect to whether or not they appear in the same occurrence of the zone.To search for two words appearing together in the same occurrence of the zone, use the standard syntax as described above, for example: