Personal tools
You are here: Home Documentation Reference Manuals Koha 3.0 Searching Zebra Help Snippets
Document Actions

11.3. Zebra Help Snippets

Up one level
Snippets of help for using Zebra.
x* Matches x zero or more times. Priority: high.
x+ Matches x one or more times. Priority: high.
x? Matches x zero or once. Priority: high.
xy Matches x, then y. Priority: medium.
x|y Matches either x or y. Priority: low.
( ) The order of evaluation may be changed by using parentheses.

 

"steph.* king" matches stephen king

 

Via: http://www.indexdata.dk/zebra/doc/querymodel-zebra.tkl#querymodel-regular

 

------------

 

     query ::= top-set query-struct.

 

     top-set ::= [ '@attrset' string ]

 

     query-struct ::= attr-spec | simple | complex | '@term' term-type query

 

     attr-spec ::= '@attr' [ string ] string query-struct

 

     complex ::= operator query-struct query-struct.

 

     operator ::= '@and' | '@or' | '@not' | '@prox' proximity.

 

     simple ::= result-set | term.

 

     result-set ::= '@set' string.

 

     term ::= string.

 

     proximity ::= exclusion distance ordered relation which-code unit-code.

 

     exclusion ::= '1' | '0' | 'void'.

 

     distance ::= integer.

 

     ordered ::= '1' | '0'.

 

     relation ::= integer.

 

     which-code ::= 'known' | 'private' | integer.

 

     unit-code ::= integer.

 

     term-type ::= 'general' | 'numeric' | 'string' | 'oid' | 'datetime' | 'null'.

 

example:   

 Z> find @prox 0 3 0 2 k 2 information retrieval
Via http://www.indexdata.dk/yaz/doc/tools.tkl#PQF