From fa91adf8d4d03f1b04c2ad3e4be9bc9a487e9a51 Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Fri, 16 Jun 2006 10:30:12 +0000 Subject: [PATCH] pretty-formatting tables, internal links veriefied, a little more text --- doc/querymodel.xml | 148 +++++++++++++++++++++++++++++++--------------------- 1 file changed, 88 insertions(+), 60 deletions(-) diff --git a/doc/querymodel.xml b/doc/querymodel.xml index bed7a2e..b067c98 100644 --- a/doc/querymodel.xml +++ b/doc/querymodel.xml @@ -1,5 +1,5 @@ - + Query Model @@ -23,6 +23,8 @@ + + Prefix Query Format (PQF) @@ -98,7 +100,7 @@ may start with one specification of the attribute set used. Following is a query tree, which - consists of atomic query parts, eventually + consists of atomic query parts (APT), eventually paired by boolean binary operators, and finally recursively combined into complex query trees. @@ -119,7 +121,9 @@ - +
+ - + - + - + @@ -159,7 +163,9 @@ using the standard boolean operators into new query trees. -
Attribute sets predefined in Zebra
exp-1exp-1 Explain attribute set Special attribute set used on the special automagic IR-Explain-1 database to gain information on @@ -136,7 +140,7 @@ and semantics.
bib-1bib-1 Bib1 attribute set Standard PQF query language attribute set which defines the semantics of Z39.50 searching. In addition, all of the @@ -144,7 +148,7 @@ processing
gilsgils GILS attribute set Extention to the Bib1 attribute set.
+
+ - + - + - + - +
Boolean operators
@and
@and binary AND operator Set intersection of two atomic queries hit sets
@or
@or binary OR operator Set union of two atomic queries hit sets
@not
@not binary AND NOT operator Set complement of two atomic queries hit sets
@prox
@prox binary PROXIMY operator Set intersection of two atomic queries hit sets. In addition, the intersection set is purged for all @@ -237,12 +243,13 @@ - Atomic queries + Atomic queries (APT) Atomic queries are the query parts which work on one acess point only. These consist of an attribute list followed by a single term or a - quoted term list. + quoted term list, and are often called + Attributes-Plus-Terms (APT) queries. Unsupplied non-use attributes type 2-9 are either inherited from @@ -250,7 +257,9 @@ See for details. - +
+ - - + + - + - + @@ -1462,8 +1491,8 @@ The above operands can be combined with the following operators: - -
Atomic queries
xMatches the character x.xMatches the character x.
.. Matches any character.
[ .. ][ .. ] Matches the set of characters specified; such as [abc] or [a-c].
+
- - + - - + - - + - - + - - + - +
Regular Expression Operators
x*Matches x zero or more times. + x*Matches x zero or more times. Priority: high.
x+Matches x one or more times. + x+Matches x one or more times. Priority: high.
x? Matches x zero or once. + x? Matches x zero or once. Priority: high.
xy Matches x, then y. + xy Matches x, then y. Priority: medium.
x|y Matches either x or y. + x|y Matches either x or y. Priority: low.
( )( ) The order of evaluation may be changed by using parentheses.
- + - If the first character of the Regxp-2 query + If the first character of the Regxp-2 query is a plus character (+) it marks the beginning of a section with non-standard specifiers. The next plus character marks the end of the section. @@ -1528,8 +1557,7 @@ Combinations with other attributes are possible. For example, a - ranked search with a regular expression - (see for the glory details): + ranked search with a regular expression: Z> find @attr 1=4 @attr 5=102 @attr 2=102 "informat.* retrieval" @@ -1544,7 +1572,7 @@ process input records. Two basic types of processing are available - raw text and structured data. Raw text is just that, and it is selected by providing the - argument text to Zebra. Structured records are + argument text to Zebra. Structured records are all handled internally using the basic mechanisms described in the subsequent sections. Zebra can read structured records in many different formats. -- 1.7.10.4