From: Adam Dickmeiss Date: Wed, 28 Sep 2011 10:52:40 +0000 (+0200) Subject: Document the OR operation for limit parameter X-Git-Tag: v1.6.4~5^2~39 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=4cbdf849a4e20dcbec675e073596b85fd4c4147b;p=pazpar2-moved-to-github.git Document the OR operation for limit parameter --- diff --git a/doc/pazpar2_protocol.xml b/doc/pazpar2_protocol.xml index 80aed16..893043a 100644 --- a/doc/pazpar2_protocol.xml +++ b/doc/pazpar2_protocol.xml @@ -188,13 +188,16 @@ search.pz?command=settings&session=2044502273&pz:allow[search.com:210/db1]=1 Limits the search to a given set of targets specified by the filter. The filter consists a comma separated list of - setting+operator+args pairs. The setting is a Pazpar2 setting + setting+operator+args + pairs. The setting is a Pazpar2 setting (such as pz:id). - The operator is either = (string match) - or ~ (substring match). The args is a list of values separated - by | (or , one of the values). The idea is that only targets - with a setting matching one of the values given will be included - in the search. + The operator is either + = (string match) + or ~ (substring match). + The args is a list of values separated + by | (or , one of the values). + The idea is that only targets with a setting matching one of + the values given will be included in the search. @@ -203,9 +206,14 @@ search.pz?command=settings&session=2044502273&pz:allow[search.com:210/db1]=1 Narrows the search by one or more fields (typically facets). - The limit is sequence of one or more name=value pairs separated - by comma. - A value that contains a comma should be escaped by backslash (\). + The limit is sequence of one or more + name=args pairs separated + by comma. The args is a list of values + separated by vertical bar (|). + The meaning of | is alternative, ie OR . + A value that contains a comma (,), + a vertical bar (|) or + backslash itself must be preceded by backslash (\). The pz:limitmap configuration item defines how the searches are mapped to a database.