X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=PROTOCOL;h=2608c380d98293c87e7d36697821479b1a23264e;hb=1ef02968c63f06e9b5a4a08f5c7474039a9941db;hp=d545df489e9a959fd66d57311c62c9d58b0ac2e3;hpb=2424ec60b95e210da9bd8152aca869e604184bff;p=pazpar2-moved-to-github.git diff --git a/PROTOCOL b/PROTOCOL index d545df4..2608c38 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 @@ -101,18 +103,90 @@ Output: OK + 3 6 7 0 2 - How to program a computer, by Jack Collins + How to program a computer, by Jack Collins 2 + 6 - + <md-title> Computer processing of dynamic images from an Anger scintillation camera : the proceedings of a workshop / - + + 2 + +record + +Retrieves a detailed record. + +Parameters: id -- record ID as provided by the show command + +Example: + +search.pz2?session=605047297&command=record&id=3 + +Example output: + + + + The Puget Sound Region : a portfolio of thematic computer maps / + + 1974 + Mairs, John W. + Cartography + + +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 + +