X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=PROTOCOL;h=4ddfd039879b08c9ad28b7bf0ab518052f00282b;hb=5017b103ece3eeb4e3ab181d5e49d50af8e56018;hp=62bd8221f7d48bf7dae43c17ffadaf50f9b21773;hpb=ecfbf76a7a6c560d2e7dcd107450ff58a7d316e5;p=pazpar2-moved-to-github.git diff --git a/PROTOCOL b/PROTOCOL index 62bd822..4ddfd03 100644 --- a/PROTOCOL +++ b/PROTOCOL @@ -1,7 +1,8 @@ Webservice requests are any that refer to filename "search.pz2". Arguments are GET-style parameters. Argument 'command' is required and specifies -command. +command. Any request not recognized as a webservice request as described, +are forwarded to the HTTP server specified in option -p. Commands: @@ -65,6 +66,7 @@ search.pz2?session=2044502273&command=stat Output: + 3 7 -- Total hitcount 7 -- Total number of records fetched 1 -- Total number of associated clients @@ -87,6 +89,11 @@ parameters: session start -- 0-indexed!! num -- default=20 +block -- 0 or 1 + +If block is set, the command will hang until there are records ready +to display. Use this to show first records rapidly without requiring rapid +polling. Example: @@ -96,6 +103,7 @@ Output: OK + 3 6 7 0 @@ -111,3 +119,50 @@ Output: + +termlist + +Retrieves term list(s) + +parameters: + +session +name -- comma-separated list of termlist names (default "subject") + +Example: + +search.pz2?session=2044502273&command=termlist&name=author,subject + +Output: + + + 3 + + + Donald Knuth + 10 + + + Robert Pirsig + 2 + + + + + Computer programming + 10 + + + + +For the special termlist name "xtargets", results are returned about the targets +which have returned the most hits. The 'term' subtree has additional elements, +specifically a state and diagnostic field (in the example below, a target ID is +returned in place of 'name'. This may or may not change later. + + + library2.mcmaster.ca + 11734 + Client_Idle + 0 +