X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=lib%2FZOOM.pod;h=23c2befe969b808f0870ea62a902b674f48d3f33;hb=8499abc0d0ff90612291f43c159ac4aab406a2ec;hp=eb9204f157429cb8770b0a86b8a4773672122bb3;hpb=e7ae58ecbe2c3f04aa83c2048052cd1654f00caf;p=ZOOM-Perl-moved-to-github.git diff --git a/lib/ZOOM.pod b/lib/ZOOM.pod index eb9204f..23c2bef 100644 --- a/lib/ZOOM.pod +++ b/lib/ZOOM.pod @@ -1,4 +1,4 @@ -# $Id: ZOOM.pod,v 1.22 2005-12-13 16:46:59 mike Exp $ +# $Id: ZOOM.pod,v 1.25 2005-12-21 00:25:51 mike Exp $ use strict; use warnings; @@ -294,13 +294,18 @@ and it creates and returns a new ResultSet object representing the set of records resulting from the search. Since queries using PQF (Prefix Query Format) are so common, we make -them a special case by providing a C method. This is +them a special case by providing a C method. This is identical to C except that it accepts a string containing the query rather than an object, thereby obviating the need to create a C object. See the documentation of that class for information about PQF. -=head4 scan() +=head4 scan() / scan_pqf() + + $rs = $conn->scan(new ZOOM::Query::CQL('title=dinosaur')); + # The next two lines are equivalent + $rs = $conn->scan(new ZOOM::Query::PQF('@attr 1=4 dinosaur')); + $rs = $conn->scan_pqf('@attr 1=4 dinosaur'); Many Z39.50 servers allow you to browse their indexes to find terms to search for. This is done using the C method, which creates and @@ -316,13 +321,11 @@ or single words (e.g. the title ``I'', or the four words ``Back'', ``Empire'', ``Strikes'' and ``The'', interleaved with words from other titles in the same index. -All of this is done by using a single term from the PQF query as the -C argument. (At present, only PQF is supported, although -there is no reason in principle why CQL and other query syntaxes -should not be supported in future). The attributes associated with +All of this is done by using a Query object representing a query of a +single term as the C argument. The attributes associated with the term indicate which index is to be used, and the term itself indicates the point in the index at which to start the scan. For -example, if the argument is C<@attr 1=4 fish>, then +example, if the argument is the query C<@attr 1=4 fish>, then =over 4 @@ -372,6 +375,12 @@ each one returned in the ScanSet. By default, no terms are skipped, but overriding this can be useful to get a high-level overview of the index. +Since scans using PQF (Prefix Query Format) are so common, we make +them a special case by providing a C method. This is +identical to C except that it accepts a string containing the +query rather than an object, thereby obviating the need to create a +C object. + =back =head4 package() @@ -427,7 +436,7 @@ need the C, C and C methods. There is no C method nor any other explicit constructor. The only way to create a new ResultSet is by using C (or -C) on a Connection. +C) on a Connection. See the description of the C class in the ZOOM Abstract API at @@ -976,9 +985,6 @@ is run on the query, the result is automatically sorted. The sort specification language is the same as the C sort-specification type of the C method C, described above. -B - =head4 destroy() $p->destroy()