You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by bu...@apache.org on 2011/08/11 04:21:01 UTC

[lucy-commits] svn commit: r794176 [3/4] - in /websites/staging/lucy/trunk/content/lucy/docs/0.1.0: ./ perl/ perl/Lucy/ perl/Lucy/Analysis/ perl/Lucy/Docs/ perl/Lucy/Docs/Cookbook/ perl/Lucy/Docs/Tutorial/ perl/Lucy/Document/ perl/Lucy/Highlight/ perl/Lucy/Index/ per...

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Index/Segment.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Index/Segment.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Index/Segment.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,122 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Index::Segment - Warehouse for information about one segment of an inverted index.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    # Index-time.
+    package MyDataWriter;
+    use base qw( Lucy::Index::DataWriter );
+
+    sub finish {
+        my $self     = shift;
+        my $segment  = $self-&gt;get_segment;
+        my $metadata = $self-&gt;SUPER::metadata();
+        $metadata-&gt;{foo} = $self-&gt;get_foo;
+        $segment-&gt;store_metadata(
+            key       =&gt; &#39;my_component&#39;,
+            metadata  =&gt; $metadata
+        );
+    }
+
+    # Search-time.
+    package MyDataReader;
+    use base qw( Lucy::Index::DataReader );
+
+    sub new {
+        my $self     = shift-&gt;SUPER::new(@_);
+        my $segment  = $self-&gt;get_segment;
+        my $metadata = $segment-&gt;fetch_metadata(&#39;my_component&#39;);
+        if ($metadata) {
+            $self-&gt;set_foo( $metadata-&gt;{foo} );
+            ...
+        }
+        return $self;
+    }</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>Apache Lucy&#39;s indexes are made up of individual &quot;segments&quot;, each of which is is an independent inverted index. On the file system, each segment is a directory within the main index directory whose name starts with &quot;seg_&quot;: &quot;seg_2&quot;, &quot;seg_5a&quot;, etc.</p>
+
+<p>Each Segment object keeps track of information about an index segment: its fields, document count, and so on. The Segment object itself writes one file, <code>segmeta.json</code>; besides storing info needed by Segment itself, the &quot;segmeta&quot; file serves as a central repository for metadata generated by other index components -- relieving them of the burden of storing metadata themselves.</p>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="add_field-field-">add_field(field)</h2>
+
+<p>Register a new field and assign it a field number. If the field was already known, nothing happens.</p>
+
+<ul>
+
+<li><p><b>field</b> - Field name.</p>
+
+</li>
+</ul>
+
+<p>Returns: the field&#39;s field number, which is a positive integer.</p>
+
+<h2 id="store_metadata-labeled-params-">store_metadata( <i>[labeled params]</i> )</h2>
+
+<p>Store arbitrary information in the segment&#39;s metadata Hash, to be serialized later. Throws an error if <code>key</code> is used twice.</p>
+
+<ul>
+
+<li><p><b>key</b> - String identifying an index component.</p>
+
+</li>
+<li><p><b>metadata</b> - JSON-izable data structure.</p>
+
+</li>
+</ul>
+
+<h2 id="fetch_metadata-key-">fetch_metadata(key)</h2>
+
+<p>Fetch a value from the Segment&#39;s metadata hash.</p>
+
+<h2 id="field_num-field-">field_num(field)</h2>
+
+<p>Given a field name, return its field number for this segment (which may differ from its number in other segments). Return 0 (an invalid field number) if the field name can&#39;t be found.</p>
+
+<ul>
+
+<li><p><b>field</b> - Field name.</p>
+
+</li>
+</ul>
+
+<h2 id="field_name-field_num-">field_name(field_num)</h2>
+
+<p>Given a field number, return the name of its field, or undef if the field name can&#39;t be found.</p>
+
+<h2 id="get_name-">get_name()</h2>
+
+<p>Getter for the object&#39;s seg name.</p>
+
+<h2 id="get_number-">get_number()</h2>
+
+<p>Getter for the segment number.</p>
+
+<h2 id="set_count-count-">set_count(count)</h2>
+
+<p>Setter for the object&#39;s document count.</p>
+
+<h2 id="get_count-">get_count()</h2>
+
+<p>Getter for the object&#39;s document count.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Index::Segment isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Index/Similarity.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Index/Similarity.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Index/Similarity.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,59 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Index::Similarity - Judge how well a document matches a query.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    package MySimilarity;
+
+    sub length_norm { return 1.0 }    # disable length normalization
+
+    package MyFullTextType;
+    use base qw( Lucy::Plan::FullTextType );
+
+    sub make_similarity { MySimilarity-&gt;new }</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>After determining whether a document matches a given query, a score must be calculated which indicates how <i>well</i> the document matches the query. The Similarity class is used to judge how &quot;similar&quot; the query and the document are to each other; the closer the resemblance, they higher the document scores.</p>
+
+<p>The default implementation uses Lucene&#39;s modified cosine similarity measure. Subclasses might tweak the existing algorithms, or might be used in conjunction with custom Query subclasses to implement arbitrary scoring schemes.</p>
+
+<p>Most of the methods operate on single fields, but some are used to combine scores from multiple fields.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-">new()</h2>
+
+<pre><code>    my $sim = Lucy::Index::Similarity-&gt;new;</code></pre>
+
+<p>Constructor. Takes no arguments.</p>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="length_norm-num_tokens-">length_norm(num_tokens)</h2>
+
+<p>Dampen the scores of long documents.</p>
+
+<p>After a field is broken up into terms at index-time, each term must be assigned a weight. One of the factors in calculating this weight is the number of tokens that the original field was broken into.</p>
+
+<p>Typically, we assume that the more tokens in a field, the less important any one of them is -- so that, e.g. 5 mentions of &quot;Kafka&quot; in a short article are given more heft than 5 mentions of &quot;Kafka&quot; in an entire book. The default implementation of length_norm expresses this using an inverted square root.</p>
+
+<p>However, the inverted square root has a tendency to reward very short fields highly, which isn&#39;t always appropriate for fields you expect to have a lot of tokens on average.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Index::Similarity isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Index/Snapshot.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Index/Snapshot.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Index/Snapshot.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,99 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Index::Snapshot - Point-in-time index file list.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $snapshot = Lucy::Index::Snapshot-&gt;new;
+    $snapshot-&gt;read_file( folder =&gt; $folder );    # load most recent snapshot
+    my $files = $snapshot-&gt;list;
+    print &quot;$_\n&quot; for @$files;</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>A Snapshot is list of index files and folders. Because index files, once written, are never modified, a Snapshot defines a point-in-time view of the data in an index.</p>
+
+<p><a href="../../Lucy/Index/IndexReader.html">IndexReader</a> objects interpret the data associated with a single Snapshot.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-">new()</h2>
+
+<pre><code>    my $snapshot = Lucy::Index::Snapshot-&gt;new;</code></pre>
+
+<p>Constructor. Takes no arguments.</p>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="list-">list()</h2>
+
+<p>Return an array of all entries.</p>
+
+<h2 id="num_entries-">num_entries()</h2>
+
+<p>Return the number of entries (including directories).</p>
+
+<h2 id="add_entry-entry-">add_entry(entry)</h2>
+
+<p>Add a filepath to the snapshot.</p>
+
+<h2 id="delete_entry-entry-">delete_entry(entry)</h2>
+
+<p>Delete a filepath from the snapshot.</p>
+
+<p>Returns: true if the entry existed and was successfully deleted, false otherwise.</p>
+
+<h2 id="read_file-labeled-params-">read_file( <i>[labeled params]</i> )</h2>
+
+<p>Decode a snapshot file and initialize the object to reflect its contents.</p>
+
+<ul>
+
+<li><p><b>folder</b> - A Folder.</p>
+
+</li>
+<li><p><b>path</b> - The location of the snapshot file. If not supplied, the most recent snapshot file in the base directory will be chosen.</p>
+
+</li>
+</ul>
+
+<p>Returns: the object, allowing an assignment idiom.</p>
+
+<h2 id="write_file-labeled-params-">write_file( <i>[labeled params]</i> )</h2>
+
+<p>Write a snapshot file. The caller must lock the index while this operation takes place, and the operation will fail if the snapshot file already exists.</p>
+
+<ul>
+
+<li><p><b>folder</b> - A Folder.</p>
+
+</li>
+<li><p><b>path</b> - The path of the file to write. If undef, a file name will be chosen which supersedes the latest snapshot file in the index folder.</p>
+
+</li>
+</ul>
+
+<h2 id="set_path-path-">set_path(path)</h2>
+
+<p>Set the path to the file that the Snapshot object serves as a proxy for.</p>
+
+<h2 id="get_path-">get_path()</h2>
+
+<p>Get the path to the snapshot file. Initially undef; updated by read_file(), write_file(), and set_path().</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Index::Snapshot isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Object/BitVector.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Object/BitVector.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Object/BitVector.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,179 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Object::BitVector - An array of bits.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $bit_vec = Lucy::Object::BitVector-&gt;new( capacity =&gt; 8 );
+    my $other   = Lucy::Object::BitVector-&gt;new( capacity =&gt; 8 );
+    $bit_vec-&gt;set($_) for ( 0, 2, 4, 6 );
+    $other-&gt;set($_)   for ( 1, 3, 5, 7 );
+    $bit_vec-&gt;or($other);
+    print &quot;$_\n&quot; for @{ $bit_vec-&gt;to_array };    # prints 0 through 7.</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>BitVector is a growable array of bits. All bits are initially zero.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $bit_vec = Lucy::Object::BitVector-&gt;new( 
+        capacity =&gt; $doc_max + 1,   # default 0,
+    );</code></pre>
+
+<ul>
+
+<li><p><b>capacity</b> - The number of bits that the initial array should be able to hold.</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="get-tick-">get(tick)</h2>
+
+<p>Return true if the bit at <code>tick</code> has been set, false if it hasn&#39;t (regardless of whether it lies within the bounds of the object&#39;s capacity).</p>
+
+<ul>
+
+<li><p><b>tick</b> - The requested bit.</p>
+
+</li>
+</ul>
+
+<h2 id="set-tick-">set(tick)</h2>
+
+<p>Set the bit at <code>tick</code> to 1.</p>
+
+<ul>
+
+<li><p><b>tick</b> - The bit to be set.</p>
+
+</li>
+</ul>
+
+<h2 id="clear-tick-">clear(tick)</h2>
+
+<p>Clear the indicated bit. (i.e. set it to 0).</p>
+
+<ul>
+
+<li><p><b>tick</b> - The bit to be cleared.</p>
+
+</li>
+</ul>
+
+<h2 id="clear_all-">clear_all()</h2>
+
+<p>Clear all bits.</p>
+
+<h2 id="and-other-">and(other)</h2>
+
+<p>Modify the BitVector so that only bits which remain set are those which 1) were already set in this BitVector, and 2) were also set in the other BitVector.</p>
+
+<ul>
+
+<li><p><b>other</b> - Another BitVector.</p>
+
+</li>
+</ul>
+
+<h2 id="or-other-">or(other)</h2>
+
+<p>Modify the BitVector, setting all bits which are set in the other BitVector if they were not already set.</p>
+
+<ul>
+
+<li><p><b>other</b> - Another BitVector.</p>
+
+</li>
+</ul>
+
+<h2 id="and_not-other-">and_not(other)</h2>
+
+<p>Modify the BitVector, clearing all bits which are set in the other.</p>
+
+<ul>
+
+<li><p><b>other</b> - Another BitVector.</p>
+
+</li>
+</ul>
+
+<h2 id="xor-other-">xor(other)</h2>
+
+<p>Modify the BitVector, performing an XOR operation against the other.</p>
+
+<ul>
+
+<li><p><b>other</b> - Another BitVector.</p>
+
+</li>
+</ul>
+
+<h2 id="flip-tick-">flip(tick)</h2>
+
+<p>Invert the value of a bit.</p>
+
+<ul>
+
+<li><p><b>tick</b> - The bit to invert.</p>
+
+</li>
+</ul>
+
+<h2 id="flip_block-labeled-params-">flip_block( <i>[labeled params]</i> )</h2>
+
+<p>Invert each bit within a contiguous block.</p>
+
+<ul>
+
+<li><p><b>offset</b> - Lower bound.</p>
+
+</li>
+<li><p><b>length</b> - The number of bits to flip.</p>
+
+</li>
+</ul>
+
+<h2 id="next_hit-tick-">next_hit(tick)</h2>
+
+<p>Returns the next set bit equal to or greater than <code>tick</code>, or -1 if no such bit exists.</p>
+
+<h2 id="to_array-">to_array()</h2>
+
+<p>Return an array where each element represents a set bit.</p>
+
+<h2 id="grow-capacity-">grow(capacity)</h2>
+
+<p>If the BitVector does not already have enough room to hold the indicated number of bits, allocate more memory so that it can.</p>
+
+<ul>
+
+<li><p><b>capacity</b> - Least number of bits the BitVector should accomodate.</p>
+
+</li>
+</ul>
+
+<h2 id="count-">count()</h2>
+
+<p>Return a count of the number of set bits.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Object::BitVector isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Object/Err.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Object/Err.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Object/Err.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,46 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Object::Err - Exception.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    use Scalar::Util qw( blessed );
+    my $bg_merger;
+    while (1) {
+        $bg_merger = eval {
+            Lucy::Index::BackgroundMerger-&gt;new( index =&gt; $index );
+        };
+        last if $bg_merger;
+        if ( blessed($@) and $@-&gt;isa(&quot;Lucy::Store::LockErr&quot;) ) {
+            warn &quot;Retrying...\n&quot;;
+        }
+        else {
+            # Re-throw.
+            die &quot;Failed to open BackgroundMerger: $@&quot;;
+        }
+    }</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>Most of the time when Lucy encounters an error, it tries to raise a Lucy::Object::Err exception with an error message and context information.</p>
+
+<p>At present, it is only safe to catch exceptions which are specifically documented as catchable; most times when an Err is raised, Lucy leaks memory.</p>
+
+<p>The Err module also provides access to a per-thread Err shared variable via set_error() and get_error(). It may be used to store an Err object temporarily, so that calling code may choose how to handle a particular error condition.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Object::Err isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Object/Obj.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Object/Obj.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Object/Obj.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,127 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Object::Obj - Base class for all Lucy objects.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    package MyObj;
+    use base qw( Lucy::Object::Obj );
+    
+    # Inside-out member var.
+    my %foo;
+    
+    sub new {
+        my ( $class, %args ) = @_;
+        my $foo = delete $args{foo};
+        my $self = $class-&gt;SUPER::new(%args);
+        $foo{$$self} = $foo;
+        return $self;
+    }
+    
+    sub get_foo {
+        my $self = shift;
+        return $foo{$$self};
+    }
+    
+    sub DESTROY {
+        my $self = shift;
+        delete $foo{$$self};
+        $self-&gt;SUPER::DESTROY;
+    }</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>All objects in the Lucy:: hierarchy descend from Lucy::Object::Obj. All classes are implemented as blessed scalar references, with the scalar storing a pointer to a C struct.</p>
+
+<h2 id="Subclassing">Subclassing</h2>
+
+<p>The recommended way to subclass Lucy::Object::Obj and its descendants is to use the inside-out design pattern. (See <a href="http://search.cpan.org/perldoc?Class::InsideOut">Class::InsideOut</a> for an introduction to inside-out techniques.)</p>
+
+<p>Since the blessed scalar stores a C pointer value which is unique per-object, <code>$$self</code> can be used as an inside-out ID.</p>
+
+<pre><code>    # Accessor for &#39;foo&#39; member variable.
+    sub get_foo {
+        my $self = shift;
+        return $foo{$$self};
+    }</code></pre>
+
+<p>Caveats:</p>
+
+<ul>
+
+<li><p>Inside-out aficionados will have noted that the &quot;cached scalar id&quot; stratagem recommended above isn&#39;t compatible with ithreads -- but Lucy doesn&#39;t support ithreads anyway, so it doesn&#39;t matter.</p>
+
+</li>
+<li><p>Overridden methods must not return undef unless the API specifies that returning undef is permissible. (Failure to adhere to this rule currently results in a segfault rather than an exception.)</p>
+
+</li>
+</ul>
+
+<h1 id="CONSTRUCTOR">CONSTRUCTOR</h1>
+
+<h2 id="new-">new()</h2>
+
+<p>Abstract constructor -- must be invoked via a subclass. Attempting to instantiate objects of class &quot;Lucy::Object::Obj&quot; directly causes an error.</p>
+
+<p>Takes no arguments; if any are supplied, an error will be reported.</p>
+
+<h1 id="DESTRUCTOR">DESTRUCTOR</h1>
+
+<h2 id="DESTROY">DESTROY</h2>
+
+<p>All Lucy classes implement a DESTROY method; if you override it in a subclass, you must call <code>$self-&gt;SUPER::DESTROY</code> to avoid leaking memory.</p>
+
+<h1 id="ABSTRACT-METHODS">ABSTRACT METHODS</h1>
+
+<h2 id="to_i64-">to_i64()</h2>
+
+<p>Convert the object to a 64-bit integer.</p>
+
+<h2 id="to_f64-">to_f64()</h2>
+
+<p>Convert the object to a double precision floating point number.</p>
+
+<h2 id="load-dump-">load(dump)</h2>
+
+<p>Create an object from the output of a call to dump(). Implementations must not reference the caller.</p>
+
+<ul>
+
+<li><p><b>dump</b> - The output of dump().</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="to_string-">to_string()</h2>
+
+<p>Generic stringification: &quot;ClassName@hex_mem_address&quot;.</p>
+
+<h2 id="equals-other-">equals(other)</h2>
+
+<p>Indicate whether two objects are the same. By default, compares the memory address.</p>
+
+<ul>
+
+<li><p><b>other</b> - Another Obj.</p>
+
+</li>
+</ul>
+
+<h2 id="dump-">dump()</h2>
+
+<p>Return a representation of the object using only scalars, hashes, and arrays. Some implementations support JSON serialization via dump() and its companion method, load(); for others, dump() is only a debugging aid. The default simply calls to_string().</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/Architecture.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/Architecture.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/Architecture.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,101 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Plan::Architecture - Configure major components of an index.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    package MyArchitecture;
+    use base qw( Lucy::Plan::Architecture );
+
+    use LucyX::Index::ZlibDocWriter;
+    use LucyX::Index::ZlibDocReader;
+
+    sub register_doc_writer {
+        my ( $self, $seg_writer ) = @_; 
+        my $doc_writer = LucyX::Index::ZlibDocWriter-&gt;new(
+            snapshot   =&gt; $seg_writer-&gt;get_snapshot,
+            segment    =&gt; $seg_writer-&gt;get_segment,
+            polyreader =&gt; $seg_writer-&gt;get_polyreader,
+        );  
+        $seg_writer-&gt;register(
+            api       =&gt; &quot;Lucy::Index::DocReader&quot;,
+            component =&gt; $doc_writer,
+        );  
+        $seg_writer-&gt;add_writer($doc_writer);
+    }
+
+    sub register_doc_reader {
+        my ( $self, $seg_reader ) = @_; 
+        my $doc_reader = LucyX::Index::ZlibDocReader-&gt;new(
+            schema   =&gt; $seg_reader-&gt;get_schema,
+            folder   =&gt; $seg_reader-&gt;get_folder,
+            segments =&gt; $seg_reader-&gt;get_segments,
+            seg_tick =&gt; $seg_reader-&gt;get_seg_tick,
+            snapshot =&gt; $seg_reader-&gt;get_snapshot,
+        );  
+        $seg_reader-&gt;register(
+            api       =&gt; &#39;Lucy::Index::DocReader&#39;,
+            component =&gt; $doc_reader,
+        );  
+    }
+ 
+    package MySchema;
+    use base qw( Lucy::Plan::Schema );
+    
+    sub architecture { 
+        shift;
+        return MyArchitecture-&gt;new(@_); 
+    }</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>By default, a Lucy index consists of several main parts: lexicon, postings, stored documents, deletions, and highlight data. The readers and writers for that data are spawned by Architecture. Each component operates at the segment level; Architecture&#39;s factory methods are used to build up <a href="../../Lucy/Index/SegWriter.html">SegWriter</a> and <a href="../../Lucy/Index/SegReader.html">SegReader</a>.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-">new()</h2>
+
+<pre><code>    my $arch = Lucy::Plan::Architecture-&gt;new;</code></pre>
+
+<p>Constructor. Takes no arguments.</p>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="register_doc_writer-writer-">register_doc_writer(writer)</h2>
+
+<p>Spawn a DataWriter and register() it with the supplied SegWriter, adding it to the SegWriter&#39;s writer stack.</p>
+
+<ul>
+
+<li><p><b>writer</b> - A SegWriter.</p>
+
+</li>
+</ul>
+
+<h2 id="register_doc_reader-reader-">register_doc_reader(reader)</h2>
+
+<p>Spawn a DocReader and register() it with the supplied SegReader.</p>
+
+<ul>
+
+<li><p><b>reader</b> - A SegReader.</p>
+
+</li>
+</ul>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Plan::Architecture isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/BlobType.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/BlobType.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/BlobType.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,47 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Plan::BlobType - Default behaviors for binary fields.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $string_type = Lucy::Plan::StringType-&gt;new;
+    my $blob_type   = Lucy::Plan::BlobType-&gt;new( stored =&gt; 1 );
+    my $schema      = Lucy::Plan::Schema-&gt;new;
+    $schema-&gt;spec_field( name =&gt; &#39;id&#39;,   type =&gt; $string_type );
+    $schema-&gt;spec_field( name =&gt; &#39;jpeg&#39;, type =&gt; $blob_type );</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>BlobType is an implementation of FieldType tuned for use with fields containing binary data, which cannot be indexed or searched -- only stored.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $blob_type = Lucy::Plan::BlobType-&gt;new(
+        stored =&gt; 1,  # default: false
+    );</code></pre>
+
+<ul>
+
+<li><p><b>stored</b> - boolean indicating whether the field should be stored.</p>
+
+</li>
+</ul>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Plan::BlobType isa <a href="../../Lucy/Plan/FieldType.html">Lucy::Plan::FieldType</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/FieldType.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/FieldType.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/FieldType.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,69 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Plan::FieldType - Define a field&#39;s behavior.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my @sortable;
+    for my $field ( @{ $schema-&gt;all_fields } ) {
+        my $type = $schema-&gt;fetch_type($field);
+        next unless $type-&gt;sortable;
+        push @sortable, $field;
+    }</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>FieldType is an abstract class defining a set of traits and behaviors which may be associated with one or more field names.</p>
+
+<p>Properties which are common to all field types include <code>boost</code>, <code>indexed</code>, <code>stored</code>, <code>sortable</code>, <code>binary</code>, and <code>similarity</code>.</p>
+
+<p>The <code>boost</code> property is a floating point scoring multiplier which defaults to 1.0. Values greater than 1.0 cause the field to contribute more to a document&#39;s score, lower values, less.</p>
+
+<p>The <code>indexed</code> property indicates whether the field should be indexed (so that it can be searched).</p>
+
+<p>The <code>stored</code> property indicates whether to store the raw field value, so that it can be retrieved when a document turns up in a search.</p>
+
+<p>The <code>sortable</code> property indicates whether search results should be sortable based on the contents of the field.</p>
+
+<p>The <code>binary</code> property indicates whether the field contains binary or text data. Unlike most other properties, <code>binary</code> is not settable.</p>
+
+<p>The <code>similarity</code> property is a <a href="../../Lucy/Index/Similarity.html">Similarity</a> object which defines matching and scoring behavior for the field. It is required if the field is <code>indexed</code>.</p>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="get_boost-">get_boost()</h2>
+
+<p>Accessor for <code>boost</code>.</p>
+
+<h2 id="indexed-">indexed()</h2>
+
+<p>Accessor for <code>indexed</code>.</p>
+
+<h2 id="stored-">stored()</h2>
+
+<p>Accessor for <code>stored</code>.</p>
+
+<h2 id="sortable-">sortable()</h2>
+
+<p>Accessor for <code>sortable</code>.</p>
+
+<h2 id="binary-">binary()</h2>
+
+<p>Indicate whether the field contains binary data.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Plan::FieldType isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/FullTextType.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/FullTextType.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/FullTextType.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,85 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Plan::FullTextType - Full-text search field type.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $polyanalyzer = Lucy::Analysis::PolyAnalyzer-&gt;new(
+        language =&gt; &#39;en&#39;,
+    );
+    my $type = Lucy::Plan::FullTextType-&gt;new(
+        analyzer =&gt; $polyanalyzer,
+    );
+    my $schema = Lucy::Plan::Schema-&gt;new;
+    $schema-&gt;spec_field( name =&gt; &#39;title&#39;,   type =&gt; $type );
+    $schema-&gt;spec_field( name =&gt; &#39;content&#39;, type =&gt; $type );</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>Lucy::Plan::FullTextType is an implementation of <a href="../../Lucy/Plan/FieldType.html">Lucy::Plan::FieldType</a> tuned for &quot;full text search&quot;.</p>
+
+<p>Full text fields are associated with an <a href="../../Lucy/Analysis/Analyzer.html">Analyzer</a>, which is used to tokenize and normalize the text so that it can be searched for individual words.</p>
+
+<p>For an exact-match, single value field type using character data, see <a href="../../Lucy/Plan/StringType.html">StringType</a>.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $type = Lucy::Plan::FullTextType-&gt;new(
+        analyzer      =&gt; $analyzer,    # required
+        boost         =&gt; 2.0,          # default: 1.0
+        indexed       =&gt; 1,            # default: true
+        stored        =&gt; 1,            # default: true
+        sortable      =&gt; 1,            # default: false
+        highlightable =&gt; 1,            # default: false
+    );</code></pre>
+
+<ul>
+
+<li><p><b>analyzer</b> - An Analyzer.</p>
+
+</li>
+<li><p><b>boost</b> - floating point per-field boost.</p>
+
+</li>
+<li><p><b>indexed</b> - boolean indicating whether the field should be indexed.</p>
+
+</li>
+<li><p><b>stored</b> - boolean indicating whether the field should be stored.</p>
+
+</li>
+<li><p><b>sortable</b> - boolean indicating whether the field should be sortable.</p>
+
+</li>
+<li><p><b>highlightable</b> - boolean indicating whether the field should be highlightable.</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="set_highlightable-highlightable-">set_highlightable(highlightable)</h2>
+
+<p>Indicate whether to store data required by <a href="../../Lucy/Highlight/Highlighter.html">Lucy::Highlight::Highlighter</a> for excerpt selection and search term highlighting.</p>
+
+<h2 id="highlightable-">highlightable()</h2>
+
+<p>Accessor for &quot;highlightable&quot; property.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Plan::FullTextType isa <a href="../../Lucy/Plan/TextType.html">Lucy::Plan::TextType</a> isa <a href="../../Lucy/Plan/FieldType.html">Lucy::Plan::FieldType</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/Schema.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/Schema.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/Schema.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,96 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Plan::Schema - User-created specification for an inverted index.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    use Lucy::Plan::Schema;
+    use Lucy::Plan::FullTextType;
+    use Lucy::Analysis::PolyAnalyzer;
+    
+    my $schema = Lucy::Plan::Schema-&gt;new;
+    my $polyanalyzer = Lucy::Analysis::PolyAnalyzer-&gt;new( 
+        language =&gt; &#39;en&#39;,
+    );
+    my $type = Lucy::Plan::FullTextType-&gt;new(
+        analyzer =&gt; $polyanalyzer,
+    );
+    $schema-&gt;spec_field( name =&gt; &#39;title&#39;,   type =&gt; $type );
+    $schema-&gt;spec_field( name =&gt; &#39;content&#39;, type =&gt; $type );</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>A Schema is a specification which indicates how other entities should interpret the raw data in an inverted index and interact with it.</p>
+
+<p>Once an actual index has been created using a particular Schema, existing field definitions may not be changed. However, it is possible to add new fields during subsequent indexing sessions.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-">new()</h2>
+
+<pre><code>    my $schema = Lucy::Plan::Schema-&gt;new;</code></pre>
+
+<p>Constructor. Takes no arguments.</p>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="spec_field-labeled-params-">spec_field( <i>[labeled params]</i> )</h2>
+
+<p>Define the behavior of a field by associating it with a FieldType.</p>
+
+<p>If this method has already been called for the supplied <code>field</code>, it will merely test to verify that the supplied FieldType equals() the existing one.</p>
+
+<ul>
+
+<li><p><b>name</b> - The name of the field.</p>
+
+</li>
+<li><p><b>type</b> - A FieldType.</p>
+
+</li>
+</ul>
+
+<h2 id="num_fields-">num_fields()</h2>
+
+<p>Return the number of fields currently defined.</p>
+
+<h2 id="all_fields-">all_fields()</h2>
+
+<p>Return all the Schema&#39;s field names as an array.</p>
+
+<h2 id="fetch_type-field-">fetch_type(field)</h2>
+
+<p>Return the FieldType for the specified field. If the field can&#39;t be found, return undef.</p>
+
+<h2 id="fetch_sim-field-">fetch_sim(field)</h2>
+
+<p>Return the Similarity for the specified field, or undef if either the field can&#39;t be found or it isn&#39;t associated with a Similarity.</p>
+
+<h2 id="architecture-">architecture()</h2>
+
+<p>Factory method which creates an Architecture object for this index.</p>
+
+<h2 id="get_architecture-">get_architecture()</h2>
+
+<p>Return the Schema instance&#39;s internal Architecture object.</p>
+
+<h2 id="get_similarity-">get_similarity()</h2>
+
+<p>Return the Schema instance&#39;s internal Similarity object.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Plan::Schema isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/StringType.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/StringType.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Plan/StringType.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,57 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Plan::StringType - Non-tokenized text type.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $type   = Lucy::Plan::StringType-&gt;new;
+    my $schema = Lucy::Plan::Schema-&gt;new;
+    $schema-&gt;spec_field( name =&gt; &#39;category&#39;, type =&gt; $type );</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>Lucy::Plan::StringType is used for &quot;exact-match&quot; strings.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-">new()</h2>
+
+<pre><code>    my $type = Lucy::Plan::StringType-&gt;new(
+        boost    =&gt; 0.1,    # default: 1.0
+        indexed  =&gt; 1,      # default: true
+        stored   =&gt; 1,      # default: true
+        sortable =&gt; 1,      # default: false
+    );</code></pre>
+
+<ul>
+
+<li><p><b>boost</b> - floating point per-field boost.</p>
+
+</li>
+<li><p><b>indexed</b> - boolean indicating whether the field should be indexed.</p>
+
+</li>
+<li><p><b>stored</b> - boolean indicating whether the field should be stored.</p>
+
+</li>
+<li><p><b>sortable</b> - boolean indicating whether the field should be sortable.</p>
+
+</li>
+</ul>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Plan::StringType isa <a href="../../Lucy/Plan/TextType.html">Lucy::Plan::TextType</a> isa <a href="../../Lucy/Plan/FieldType.html">Lucy::Plan::FieldType</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/ANDQuery.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/ANDQuery.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/ANDQuery.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,53 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::ANDQuery - Intersect multiple result sets.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $foo_and_bar_query = Lucy::Search::ANDQuery-&gt;new(
+        children =&gt; [ $foo_query, $bar_query ],
+    );
+    my $hits = $searcher-&gt;hits( query =&gt; $foo_and_bar_query );
+    ...</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>ANDQuery is a composite <a href="../../Lucy/Search/Query.html">Query</a> which matches only when all of its children match, so its result set is the intersection of their result sets. Documents which match receive a summed score.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $foo_and_bar_query = Lucy::Search::ANDQuery-&gt;new(
+        children =&gt; [ $foo_query, $bar_query ],
+    );</code></pre>
+
+<ul>
+
+<li><p><b>children</b> - An array of child Queries.</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="add_child-query-">add_child(query)</h2>
+
+<p>Add a child Query node.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::ANDQuery isa <a href="../../Lucy/Search/PolyQuery.html">Lucy::Search::PolyQuery</a> isa <a href="../../Lucy/Search/Query.html">Lucy::Search::Query</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Collector.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Collector.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Collector.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,59 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::Collector - Process hits.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    # Abstract base class.</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>A Collector decides what to do with the hits that a <a href="../../Lucy/Search/Matcher.html">Matcher</a> iterates through, based on how the abstract collect() method is implemented.</p>
+
+<p>Collectors operate on individual segments, but must operate within the context of a larger collection. Each time the collector moves to a new segment, set_reader(), set_base() and set_matcher() will be called, and the collector must take the updated information into account.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-">new()</h2>
+
+<pre><code>    package MyCollector;
+    use base qw( Lucy::Search::Collector );
+    our %foo;
+    sub new {
+        my $self = shift-&gt;SUPER::new;
+        my %args = @_;
+        $foo{$$self} = $args{foo};
+        return $self;
+    }</code></pre>
+
+<p>Abstract constructor. Takes no arguments.</p>
+
+<h1 id="ABSTRACT-METHODS">ABSTRACT METHODS</h1>
+
+<h2 id="collect-doc_id-">collect(doc_id)</h2>
+
+<p>Do something with a doc id. (For instance, keep track of the docs with the ten highest scores.)</p>
+
+<ul>
+
+<li><p><b>doc_id</b> - A segment document id.</p>
+
+</li>
+</ul>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::Collector isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Collector/BitCollector.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Collector/BitCollector.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Collector/BitCollector.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,58 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::Collector::BitCollector - Collector which records doc nums in a BitVector.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $bit_vec = Lucy::Object::BitVector-&gt;new(
+        capacity =&gt; $searcher-&gt;doc_max + 1,
+    );
+    my $bit_collector = Lucy::Search::Collector::BitCollector-&gt;new(
+        bit_vector =&gt; $bit_vec, 
+    );
+    $searcher-&gt;collect(
+        collector =&gt; $bit_collector,
+        query     =&gt; $query,
+    );</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>BitCollector is a Collector which saves matching document ids in a <a href="../../../Lucy/Object/BitVector.html">BitVector</a>. It is useful for recording the entire set of documents which matches a query.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $bit_collector = Lucy::Search::Collector::BitCollector-&gt;new(
+        bit_vector =&gt; $bit_vec,    # required
+    );</code></pre>
+
+<ul>
+
+<li><p><b>bit_vector</b> - A Lucy::Object::BitVector.</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="collect-doc_id-">collect(doc_id)</h2>
+
+<p>Set bit in the object&#39;s BitVector for the supplied doc id.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::Collector::BitCollector isa <a href="../../../Lucy/Search/Collector.html">Lucy::Search::Collector</a> isa <a href="../../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Compiler.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Compiler.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Compiler.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,152 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::Compiler - Query-to-Matcher compiler.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    # (Compiler is an abstract base class.)
+    package MyCompiler;
+    use base qw( Lucy::Search::Compiler );
+
+    sub make_matcher {
+        my $self = shift;
+        return MyMatcher-&gt;new( @_, compiler =&gt; $self );
+    }</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>The purpose of the Compiler class is to take a specification in the form of a <a href="../../Lucy/Search/Query.html">Query</a> object and compile a <a href="../../Lucy/Search/Matcher.html">Matcher</a> object that can do real work.</p>
+
+<p>The simplest Compiler subclasses -- such as those associated with constant-scoring Query types -- might simply implement a make_matcher() method which passes along information verbatim from the Query to the Matcher&#39;s constructor.</p>
+
+<p>However it is common for the Compiler to perform some calculations which affect it&#39;s &quot;weight&quot; -- a floating point multiplier that the Matcher will factor into each document&#39;s score. If that is the case, then the Compiler subclass may wish to override get_weight(), sum_of_squared_weights(), and apply_norm_factor().</p>
+
+<p>Compiling a Matcher is a two stage process.</p>
+
+<p>The first stage takes place during the Compiler&#39;s constructor, which is where the Query object meets a <a href="../../Lucy/Search/Searcher.html">Searcher</a> object for the first time. Searchers operate on a specific document collection and they can tell you certain statistical information about the collection -- such as how many total documents are in the collection, or how many documents in the collection a particular term is present in. Lucy&#39;s core Compiler classes plug this information into the classic TF/IDF weighting algorithm to adjust the Compiler&#39;s weight; custom subclasses might do something similar.</p>
+
+<p>The second stage of compilation is make_matcher(), method, which is where the Compiler meets a <a href="../../Lucy/Index/SegReader.html">SegReader</a> object. SegReaders are associated with a single segment within a single index on a single machine, and are thus lower-level than Searchers, which may represent a document collection spread out over a search cluster (comprising several indexes and many segments). The Compiler object can use new information supplied by the SegReader -- such as whether a term is missing from the local index even though it is present within the larger collection represented by the Searcher -- when figuring out what to feed to the Matchers&#39;s constructor, or whether make_matcher() should return a Matcher at all.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $compiler = MyCompiler-&gt;SUPER::new(
+        parent     =&gt; $my_query,
+        searcher   =&gt; $searcher,
+        similarity =&gt; $sim,        # default: undef
+        boost      =&gt; undef,       # default: see below
+    );</code></pre>
+
+<p>Abstract constructor.</p>
+
+<ul>
+
+<li><p><b>parent</b> - The parent Query.</p>
+
+</li>
+<li><p><b>searcher</b> - A Lucy::Search::Searcher, such as an IndexSearcher.</p>
+
+</li>
+<li><p><b>similarity</b> - A Similarity.</p>
+
+</li>
+<li><p><b>boost</b> - An arbitrary scoring multiplier. Defaults to the boost of the parent Query.</p>
+
+</li>
+</ul>
+
+<h1 id="ABSTRACT-METHODS">ABSTRACT METHODS</h1>
+
+<h2 id="make_matcher-labeled-params-">make_matcher( <i>[labeled params]</i> )</h2>
+
+<p>Factory method returning a Matcher.</p>
+
+<ul>
+
+<li><p><b>reader</b> - A SegReader.</p>
+
+</li>
+<li><p><b>need_score</b> - Indicate whether the Matcher must implement score().</p>
+
+</li>
+</ul>
+
+<p>Returns: a Matcher, or undef if the Matcher would have matched no documents.</p>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="get_weight-">get_weight()</h2>
+
+<p>Return the Compiler&#39;s numerical weight, a scoring multiplier. By default, returns the object&#39;s boost.</p>
+
+<h2 id="sum_of_squared_weights-">sum_of_squared_weights()</h2>
+
+<p>Compute and return a raw weighting factor. (This quantity is used by normalize()). By default, simply returns 1.0.</p>
+
+<h2 id="apply_norm_factor-factor-">apply_norm_factor(factor)</h2>
+
+<p>Apply a floating point normalization multiplier. For a TermCompiler, this involves multiplying its own weight by the supplied factor; combining classes such as ORCompiler would apply the factor recursively to their children.</p>
+
+<p>The default implementation is a no-op; subclasses may wish to multiply their internal weight by the supplied factor.</p>
+
+<ul>
+
+<li><p><b>factor</b> - The multiplier.</p>
+
+</li>
+</ul>
+
+<h2 id="normalize-">normalize()</h2>
+
+<p>Take a newly minted Compiler object and apply query-specific normalization factors. Should be called at or near the end of construction.</p>
+
+<p>For a TermQuery, the scoring formula is approximately:</p>
+
+<pre><code>    (tf_d * idf_t / norm_d) * (tf_q * idf_t / norm_q)</code></pre>
+
+<p>normalize() is theoretically concerned with applying the second half of that formula to a the Compiler&#39;s weight. What actually happens depends on how the Compiler and Similarity methods called internally are implemented.</p>
+
+<h2 id="get_parent-">get_parent()</h2>
+
+<p>Accessor for the Compiler&#39;s parent Query object.</p>
+
+<h2 id="get_similarity-">get_similarity()</h2>
+
+<p>Accessor for the Compiler&#39;s Similarity object.</p>
+
+<h2 id="highlight_spans-labeled-params-">highlight_spans( <i>[labeled params]</i> )</h2>
+
+<p>Return an array of Span objects, indicating where in the given field the text that matches the parent Query occurs and how well each snippet matches. The Span&#39;s offset and length are measured in Unicode code points.</p>
+
+<p>The default implementation returns an empty array.</p>
+
+<ul>
+
+<li><p><b>searcher</b> - A Searcher.</p>
+
+</li>
+<li><p><b>doc_vec</b> - A DocVector.</p>
+
+</li>
+<li><p><b>field</b> - The name of the field.</p>
+
+</li>
+</ul>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::Compiler isa <a href="../../Lucy/Search/Query.html">Lucy::Search::Query</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Hits.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Hits.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Hits.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,45 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::Hits - Access search results.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $hits = $searcher-&gt;hits(
+        query      =&gt; $query,
+        offset     =&gt; 0,
+        num_wanted =&gt; 10,
+    );
+    while ( my $hit = $hits-&gt;next ) {
+        print &quot;&lt;p&gt;$hit-&gt;{title} &lt;em&gt;&quot; . $hit-&gt;get_score . &quot;&lt;/em&gt;&lt;/p&gt;\n&quot;;
+    }</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>Hits objects are iterators used to access the results of a search.</p>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="next-">next()</h2>
+
+<p>Return the next hit, or undef when the iterator is exhausted.</p>
+
+<h2 id="total_hits-">total_hits()</h2>
+
+<p>Return the total number of documents which matched the Query used to produce the Hits object. Note that this is the total number of matches, not just the number of matches represented by the Hits iterator.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::Hits isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/IndexSearcher.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/IndexSearcher.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/IndexSearcher.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,125 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::IndexSearcher - Execute searches against a single index.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $searcher = Lucy::Search::IndexSearcher-&gt;new( 
+        index =&gt; &#39;/path/to/index&#39; 
+    );
+    my $hits = $searcher-&gt;hits(
+        query      =&gt; &#39;foo bar&#39;,
+        offset     =&gt; 0,
+        num_wanted =&gt; 100,
+    );</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>Use the IndexSearcher class to perform search queries against an index. (For searching multiple indexes at once, see <a href="../../Lucy/Search/PolySearcher.html">PolySearcher</a>).</p>
+
+<p>IndexSearchers operate against a single point-in-time view or <a href="../../Lucy/Index/Snapshot.html">Snapshot</a> of the index. If an index is modified, a new IndexSearcher must be opened to access the changes.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $searcher = Lucy::Search::IndexSearcher-&gt;new( 
+        index =&gt; &#39;/path/to/index&#39; 
+    );</code></pre>
+
+<ul>
+
+<li><p><b>index</b> - Either a string filepath, a Folder, or an IndexReader.</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="hits-labeled-params-">hits( <i>[labeled params]</i> )</h2>
+
+<p>Return a Hits object containing the top results.</p>
+
+<ul>
+
+<li><p><b>query</b> - Either a Query object or a query string.</p>
+
+</li>
+<li><p><b>offset</b> - The number of most-relevant hits to discard, typically used when &quot;paging&quot; through hits N at a time. Setting <code>offset</code> to 20 and <code>num_wanted</code> to 10 retrieves hits 21-30, assuming that 30 hits can be found.</p>
+
+</li>
+<li><p><b>num_wanted</b> - The number of hits you would like to see after <code>offset</code> is taken into account.</p>
+
+</li>
+<li><p><b>sort_spec</b> - A <a href="../../Lucy/Search/SortSpec.html">Lucy::Search::SortSpec</a>, which will affect how results are ranked and returned.</p>
+
+</li>
+</ul>
+
+<h2 id="collect-labeled-params-">collect( <i>[labeled params]</i> )</h2>
+
+<p>Iterate over hits, feeding them into a <a href="../../Lucy/Search/Collector.html">Collector</a>.</p>
+
+<ul>
+
+<li><p><b>query</b> - A Query.</p>
+
+</li>
+<li><p><b>collector</b> - A Collector.</p>
+
+</li>
+</ul>
+
+<h2 id="doc_max-">doc_max()</h2>
+
+<p>Return the maximum number of docs in the collection represented by the Searcher, which is also the highest possible internal doc id. Documents which have been marked as deleted but not yet purged are included in this count.</p>
+
+<h2 id="doc_freq-labeled-params-">doc_freq( <i>[labeled params]</i> )</h2>
+
+<p>Return the number of documents which contain the term in the given field.</p>
+
+<ul>
+
+<li><p><b>field</b> - Field name.</p>
+
+</li>
+<li><p><b>term</b> - The term to look up.</p>
+
+</li>
+</ul>
+
+<h2 id="fetch_doc-doc_id-">fetch_doc(doc_id)</h2>
+
+<p>Retrieve a document. Throws an error if the doc id is out of range.</p>
+
+<ul>
+
+<li><p><b>doc_id</b> - A document id.</p>
+
+</li>
+</ul>
+
+<h2 id="get_schema-">get_schema()</h2>
+
+<p>Accessor for the object&#39;s <code>schema</code> member.</p>
+
+<h2 id="get_reader-">get_reader()</h2>
+
+<p>Accessor for the object&#39;s <code>reader</code> member.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::IndexSearcher isa <a href="../../Lucy/Search/Searcher.html">Lucy::Search::Searcher</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/LeafQuery.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/LeafQuery.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/LeafQuery.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,71 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::LeafQuery - Leaf node in a tree created by QueryParser.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    package MyQueryParser;
+    use base qw( Lucy::Search::QueryParser );
+
+    sub expand_leaf {
+        my ( $self, $leaf_query ) = @_;
+        if ( $leaf_query-&gt;get_text =~ /.\*\s*$/ ) {
+            return PrefixQuery-&gt;new(
+                query_string =&gt; $leaf_query-&gt;get_text,
+                field        =&gt; $leaf_query-&gt;get_field,
+            );
+        }
+        else {
+            return $self-&gt;SUPER::expand_leaf($leaf_query);
+        }
+    }</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>LeafQuery objects serve as leaf nodes in the tree structure generated by <a href="../../Lucy/Search/QueryParser.html">QueryParser</a>&#39;s tree() method. Ultimately, they must be transformed, typically into either <a href="../../Lucy/Search/TermQuery.html">TermQuery</a> or <a href="../../Lucy/Search/PhraseQuery.html">PhraseQuery</a> objects, as attempting to search a LeafQuery causes an error.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $leaf_query = Lucy::Search::LeafQuery-&gt;new(
+        text  =&gt; &#39;&quot;three blind mice&quot;&#39;,    # required
+        field =&gt; &#39;content&#39;,               # default: undef
+    );</code></pre>
+
+<ul>
+
+<li><p><b>field</b> - Optional field name.</p>
+
+</li>
+<li><p><b>text</b> - Raw query text.</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="get_field-">get_field()</h2>
+
+<p>Accessor for object&#39;s <code>field</code> attribute.</p>
+
+<h2 id="get_text-">get_text()</h2>
+
+<p>Accessor for object&#39;s <code>text</code> attribute.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::LeafQuery isa <a href="../../Lucy/Search/Query.html">Lucy::Search::Query</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/MatchAllQuery.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/MatchAllQuery.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/MatchAllQuery.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,32 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::MatchAllQuery - Query which matches all documents.</p>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>MatchAllQuery is a utility class which matches all documents. Each match is assigned a score of 0.0, so that in composite queries, any document which matches against another part of the query will be ranked higher than a document which matches only via the MatchAllQuery.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-">new()</h2>
+
+<pre><code>    my $match_all_query = Lucy::Search::MatchAllQuery-&gt;new;</code></pre>
+
+<p>Constructor. Takes no arguments.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::MatchAllQuery isa <a href="../../Lucy/Search/Query.html">Lucy::Search::Query</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Matcher.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Matcher.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Matcher.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,69 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::Matcher - Match a set of document ids.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    # abstract base class</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>A Matcher iterates over a set of ascending document ids. Some Matchers implement score() and can assign relevance scores to the docs that they match. Other implementations may be match-only.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-">new()</h2>
+
+<pre><code>    my $matcher = MyMatcher-&gt;SUPER::new;</code></pre>
+
+<p>Abstract constructor.</p>
+
+<h1 id="ABSTRACT-METHODS">ABSTRACT METHODS</h1>
+
+<h2 id="next-">next()</h2>
+
+<p>Proceed to the next doc id.</p>
+
+<p>Returns: A positive doc id, or 0 once the iterator is exhausted.</p>
+
+<h2 id="get_doc_id-">get_doc_id()</h2>
+
+<p>Return the current doc id. Valid only after a successful call to next() or advance() and must not be called otherwise.</p>
+
+<h2 id="score-">score()</h2>
+
+<p>Return the score of the current document.</p>
+
+<p>Only Matchers which are used for scored search need implement score().</p>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="advance-target-">advance(target)</h2>
+
+<p>Advance the iterator to the first doc id greater than or equal to <code>target</code>. The default implementation simply calls next() over and over, but subclasses have the option of doing something more efficient.</p>
+
+<ul>
+
+<li><p><b>target</b> - A positive doc id, which must be greater than the current doc id once the iterator has been initialized.</p>
+
+</li>
+</ul>
+
+<p>Returns: A positive doc id, or 0 once the iterator is exhausted.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::Matcher isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/NOTQuery.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/NOTQuery.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/NOTQuery.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,62 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::NOTQuery - Invert the result set of another Query.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $not_bar_query = Lucy::Search::NOTQuery-&gt;new( 
+        negated_query =&gt; $bar_query,
+    );
+    my $foo_and_not_bar_query = Lucy::Search::ANDQuery-&gt;new(
+        children =&gt; [ $foo_query, $not_bar_query ].
+    );
+    my $hits = $searcher-&gt;hits( query =&gt; $foo_and_not_bar_query );
+    ...</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>A NOTQuery wraps another <a href="../../Lucy/Search/Query.html">Query</a> and matches against its inverse document set. All matching docs recieve a score of 0.0.</p>
+
+<p>NOTQuery is often used in conjunction with <a href="../../Lucy/Search/ANDQuery.html">ANDQuery</a> to provide &quot;a AND NOT b&quot; semantics.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $not_query = Lucy::Search::NOTQuery-&gt;new( 
+        negated_query =&gt; $query,
+    );</code></pre>
+
+<ul>
+
+<li><p><b>negated_query</b> - The Query whose result set should be inverted.</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="get_negated_query-">get_negated_query()</h2>
+
+<p>Accessor for the object&#39;s negated query.</p>
+
+<h2 id="set_negated_query-negated_query-">set_negated_query(negated_query)</h2>
+
+<p>Setter for the object&#39;s negated query.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::NOTQuery isa <a href="../../Lucy/Search/PolyQuery.html">Lucy::Search::PolyQuery</a> isa <a href="../../Lucy/Search/Query.html">Lucy::Search::Query</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/NoMatchQuery.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/NoMatchQuery.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/NoMatchQuery.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,32 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::NoMatchQuery - Query which matches no documents.</p>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>NoMatchQuery is a utility class representing a query which matches nothing. Typical usage might include e.g. returning a NoMatchQuery when a <a href="../../Lucy/Search/QueryParser.html">QueryParser</a> is asked to parse an empty string.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-">new()</h2>
+
+<pre><code>    my $no_match_query = Lucy::Search::NoMatchQuery-&gt;new;</code></pre>
+
+<p>Constructor. Takes no arguments.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::NoMatchQuery isa <a href="../../Lucy/Search/Query.html">Lucy::Search::Query</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/ORQuery.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/ORQuery.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/ORQuery.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,53 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::ORQuery - Union multiple result sets.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $foo_or_bar_query = Lucy::Search::ORQuery-&gt;new(
+        children =&gt; [ $foo_query, $bar_query ],
+    );
+    my $hits = $searcher-&gt;hits( query =&gt; $foo_or_bar_query );
+    ...</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>ORQuery is a composite <a href="../../Lucy/Search/Query.html">Query</a> which matches when any of its children match, so its result set is the union of their result sets. Matching documents recieve a summed score from all matching child Queries.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $foo_or_bar_query = Lucy::Search::ORQuery-&gt;new(
+        children =&gt; [ $foo_query, $bar_query ],
+    );</code></pre>
+
+<ul>
+
+<li><p><b>children</b> - An array of child Queries.</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="add_child-query-">add_child(query)</h2>
+
+<p>Add a child Query node.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::ORQuery isa <a href="../../Lucy/Search/PolyQuery.html">Lucy::Search::PolyQuery</a> isa <a href="../../Lucy/Search/Query.html">Lucy::Search::Query</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/PhraseQuery.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/PhraseQuery.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/PhraseQuery.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,56 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::PhraseQuery - Query matching an ordered list of terms.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $phrase_query = Lucy::Search::PhraseQuery-&gt;new( 
+        field =&gt; &#39;content&#39;,
+        terms =&gt; [qw( the who )],
+    );
+    my $hits = $searcher-&gt;hits( query =&gt; $phrase_query );</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>PhraseQuery is a subclass of <a href="../../Lucy/Search/Query.html">Lucy::Search::Query</a> for matching against an ordered sequence of terms.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<ul>
+
+<li><p><b>field</b> - The field that the phrase must occur in.</p>
+
+</li>
+<li><p><b>terms</b> - The ordered array of terms that must match.</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="get_field-">get_field()</h2>
+
+<p>Accessor for object&#39;s field attribute.</p>
+
+<h2 id="get_terms-">get_terms()</h2>
+
+<p>Accessor for object&#39;s array of terms.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::PhraseQuery isa <a href="../../Lucy/Search/Query.html">Lucy::Search::Query</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/PolyQuery.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/PolyQuery.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/PolyQuery.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,39 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::PolyQuery - Base class for composite Query objects.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    sub walk {
+        my $query = shift;
+        if ( $query-&gt;isa(&quot;Lucy::Search::PolyQuery&quot;) ) {
+            if    ( $query-&gt;isa(&quot;Lucy::Search::ORQuery&quot;) )  { ... }
+            elsif ( $query-&gt;isa(&quot;Lucy::Search::ANDQuery&quot;) ) { ... }
+            elsif ( $query-&gt;isa(&quot;Lucy::Search::RequiredOptionalQuery&quot;) ) {
+                ...
+            }
+            elsif ( $query-&gt;isa(&quot;Lucy::Search::NOTQuery&quot;) ) { ... }
+        }
+        else { ... }
+    }</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>PolyQuery serves as a shared base class for <a href="../../Lucy/Search/ANDQuery.html">ANDQuery</a>, <a href="../../Lucy/Search/ORQuery.html">ORQuery</a>, <a href="../../Lucy/Search/NOTQuery.html">NOTQuery</a>, and <a href="../../Lucy/Search/RequiredOptionalQuery.html">RequiredOptionalQuery</a>. All of these classes may serve as nodes in composite Query with a tree structure which may be walked.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::PolyQuery isa <a href="../../Lucy/Search/Query.html">Lucy::Search::Query</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/PolySearcher.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/PolySearcher.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/PolySearcher.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,114 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::PolySearcher - Aggregate results from multiple Searchers.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $schema = MySchema-&gt;new;
+    for my $server_name (@server_names) {
+        push @searchers, LucyX::Remote::SearchClient-&gt;new(
+            peer_address =&gt; &quot;$server_name:$port&quot;,
+            password     =&gt; $pass,
+            schema       =&gt; $schema,
+        );
+    }
+    my $poly_searcher = Lucy::Search::PolySearcher-&gt;new(
+        schema    =&gt; $schema,
+        searchers =&gt; \@searchers,
+    );
+    my $hits = $poly_searcher-&gt;hits( query =&gt; $query );</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>The primary use for PolySearcher is to aggregate results from several remote <a href="../../Lucy/Search/Searcher.html">Searchers</a> via <a href="../../LucyX/Remote/SearchClient.html">LucyX::Remote::SearchClient</a>, diffusing the cost of searching a large corpus over multiple machines. It is also possible to aggregate results from multiple Searchers on a single machine.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $poly_searcher = Lucy::Search::PolySearcher-&gt;new(
+        schema    =&gt; $schema,
+        searchers =&gt; \@searchers,
+    );</code></pre>
+
+<ul>
+
+<li><p><b>schema</b> - A Schema.</p>
+
+</li>
+<li><p><b>searchers</b> - An array of Searchers.</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="hits-labeled-params-">hits( <i>[labeled params]</i> )</h2>
+
+<p>Return a Hits object containing the top results.</p>
+
+<ul>
+
+<li><p><b>query</b> - Either a Query object or a query string.</p>
+
+</li>
+<li><p><b>offset</b> - The number of most-relevant hits to discard, typically used when &quot;paging&quot; through hits N at a time. Setting <code>offset</code> to 20 and <code>num_wanted</code> to 10 retrieves hits 21-30, assuming that 30 hits can be found.</p>
+
+</li>
+<li><p><b>num_wanted</b> - The number of hits you would like to see after <code>offset</code> is taken into account.</p>
+
+</li>
+<li><p><b>sort_spec</b> - A <a href="../../Lucy/Search/SortSpec.html">Lucy::Search::SortSpec</a>, which will affect how results are ranked and returned.</p>
+
+</li>
+</ul>
+
+<h2 id="doc_max-">doc_max()</h2>
+
+<p>Return the maximum number of docs in the collection represented by the Searcher, which is also the highest possible internal doc id. Documents which have been marked as deleted but not yet purged are included in this count.</p>
+
+<h2 id="doc_freq-labeled-params-">doc_freq( <i>[labeled params]</i> )</h2>
+
+<p>Return the number of documents which contain the term in the given field.</p>
+
+<ul>
+
+<li><p><b>field</b> - Field name.</p>
+
+</li>
+<li><p><b>term</b> - The term to look up.</p>
+
+</li>
+</ul>
+
+<h2 id="fetch_doc-doc_id-">fetch_doc(doc_id)</h2>
+
+<p>Retrieve a document. Throws an error if the doc id is out of range.</p>
+
+<ul>
+
+<li><p><b>doc_id</b> - A document id.</p>
+
+</li>
+</ul>
+
+<h2 id="get_schema-">get_schema()</h2>
+
+<p>Accessor for the object&#39;s <code>schema</code> member.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::PolySearcher isa <a href="../../Lucy/Search/Searcher.html">Lucy::Search::Searcher</a> isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Query.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Query.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/Query.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,86 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::Query - A specification for a search query.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    # Query is an abstract base class.
+    package MyQuery;
+    use base qw( Lucy::Search::Query );
+    
+    sub make_compiler {
+        my $self = shift;
+        return MyCompiler-&gt;new( @_, parent =&gt; $self );
+    }
+    
+    package MyCompiler;
+    use base ( Lucy::Search::Compiler );
+    ...</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>Query objects are simple containers which contain the minimum information necessary to define a search query.</p>
+
+<p>The most common way to generate Query objects is to feed a search string such as &#39;foo AND bar&#39; to a <a href="../../Lucy/Search/QueryParser.html">QueryParser&#39;s</a> parse() method, which outputs an abstract syntax tree built up from various Query subclasses such as <a href="../../Lucy/Search/ANDQuery.html">ANDQuery</a> and <a href="../../Lucy/Search/TermQuery.html">TermQuery</a>. However, it is also possible to use custom Query objects to build a search specification which cannot be easily represented using a search string.</p>
+
+<p>Subclasses of Query must implement make_compiler(), which is the first step in compiling a Query down to a <a href="../../Lucy/Search/Matcher.html">Matcher</a> which can actually match and score documents.</p>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $query = MyQuery-&gt;SUPER::new(
+        boost =&gt; 2.5,
+    );</code></pre>
+
+<p>Abstract constructor.</p>
+
+<ul>
+
+<li><p><b>boost</b> - A scoring multiplier, affecting the Query&#39;s relative contribution to each document&#39;s score. Typically defaults to 1.0, but subclasses which do not contribute to document scores such as NOTQuery and MatchAllQuery default to 0.0 instead.</p>
+
+</li>
+</ul>
+
+<h1 id="ABSTRACT-METHODS">ABSTRACT METHODS</h1>
+
+<h2 id="make_compiler-labeled-params-">make_compiler( <i>[labeled params]</i> )</h2>
+
+<p>Abstract factory method returning a Compiler derived from this Query.</p>
+
+<ul>
+
+<li><p><b>searcher</b> - A Searcher.</p>
+
+</li>
+<li><p><b>boost</b> - A scoring multiplier. Defaults to the Query&#39;s own boost.</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="set_boost-boost-">set_boost(boost)</h2>
+
+<p>Set the Query&#39;s boost.</p>
+
+<h2 id="get_boost-">get_boost()</h2>
+
+<p>Get the Query&#39;s boost.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::Query isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+

Added: websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/QueryParser.html
==============================================================================
--- websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/QueryParser.html (added)
+++ websites/staging/lucy/trunk/content/lucy/docs/0.1.0/perl/Lucy/Search/QueryParser.html Thu Aug 11 02:20:58 2011
@@ -0,0 +1,247 @@
+
+<html>
+<head>
+<title></title>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+</head>
+<body>
+
+
+<h1 id="NAME">NAME</h1>
+
+<p>Lucy::Search::QueryParser - Transform a string into a Query object.</p>
+
+<h1 id="SYNOPSIS">SYNOPSIS</h1>
+
+<pre><code>    my $query_parser = Lucy::Search::QueryParser-&gt;new(
+        schema =&gt; $searcher-&gt;get_schema,
+        fields =&gt; [&#39;body&#39;],
+    );
+    my $query = $query_parser-&gt;parse( $query_string );
+    my $hits  = $searcher-&gt;hits( query =&gt; $query );</code></pre>
+
+<h1 id="DESCRIPTION">DESCRIPTION</h1>
+
+<p>QueryParser accepts search strings as input and produces <a href="../../Lucy/Search/Query.html">Lucy::Search::Query</a> objects, suitable for feeding into <a href="../../Lucy/Search/IndexSearcher.html">IndexSearcher</a> and other <a href="../../Lucy/Search/Searcher.html">Searcher</a> subclasses.</p>
+
+<p>The following syntactical constructs are recognized by QueryParser:</p>
+
+<pre><code>    * Boolean operators &#39;AND&#39;, &#39;OR&#39;, and &#39;AND NOT&#39;.
+    * Prepented +plus and -minus, indicating that the labeled entity
+      should be either required or forbidden -- be it a single word, a
+      phrase, or a parenthetical group.
+    * Logical groups, delimited by parentheses.
+    * Phrases, delimited by double quotes.</code></pre>
+
+<p>Additionally, the following syntax can be enabled via set_heed_colons():</p>
+
+<pre><code>    * Field-specific constructs, in the form of &#39;fieldname:termtext&#39; or
+      &#39;fieldname:(foo bar)&#39;.  (The field specified by &#39;fieldname:&#39; will be
+      used instead of the QueryParser&#39;s default fields).</code></pre>
+
+<h1 id="CONSTRUCTORS">CONSTRUCTORS</h1>
+
+<h2 id="new-labeled-params-">new( <i>[labeled params]</i> )</h2>
+
+<pre><code>    my $query_parser = Lucy::Search::QueryParser-&gt;new(
+        schema         =&gt; $searcher-&gt;get_schema,    # required
+        analyzer       =&gt; $analyzer,                # overrides schema
+        fields         =&gt; [&#39;bodytext&#39;],             # default: indexed fields
+        default_boolop =&gt; &#39;AND&#39;,                    # default: &#39;OR&#39;
+    );</code></pre>
+
+<p>Constructor.</p>
+
+<ul>
+
+<li><p><b>schema</b> - A <a href="../../Lucy/Plan/Schema.html">Schema</a>.</p>
+
+</li>
+<li><p><b>analyzer</b> - An <a href="../../Lucy/Analysis/Analyzer.html">Analyzer</a>. Ordinarily, the analyzers specified by each field&#39;s definition will be used, but if <code>analyzer</code> is supplied, it will override and be used for all fields. This can lead to mismatches between what is in the index and what is being searched for, so use caution.</p>
+
+</li>
+<li><p><b>fields</b> - The names of the fields which will be searched against. Defaults to those fields which are defined as indexed in the supplied Schema.</p>
+
+</li>
+<li><p><b>default_boolop</b> - Two possible values: &#39;AND&#39; and &#39;OR&#39;. The default is &#39;OR&#39;, which means: return documents which match any of the query terms. If you want only documents which match all of the query terms, set this to &#39;AND&#39;.</p>
+
+</li>
+</ul>
+
+<h1 id="METHODS">METHODS</h1>
+
+<h2 id="parse-query_string-">parse(query_string)</h2>
+
+<p>Build a Query object from the contents of a query string. At present, implemented internally by calling tree(), expand(), and prune().</p>
+
+<ul>
+
+<li><p><b>query_string</b> - The string to be parsed. May be undef.</p>
+
+</li>
+</ul>
+
+<p>Returns: a Query.</p>
+
+<h2 id="tree-query_string-">tree(query_string)</h2>
+
+<p>Parse the logical structure of a query string, building a tree comprised of Query objects. Leaf nodes in the tree will most often be LeafQuery objects but might be MatchAllQuery or NoMatchQuery objects as well. Internal nodes will be objects which subclass PolyQuery: ANDQuery, ORQuery, NOTQuery, and RequiredOptionalQuery.</p>
+
+<p>The output of tree() is an intermediate form which must be passed through expand() before being used to feed a search.</p>
+
+<ul>
+
+<li><p><b>query_string</b> - The string to be parsed.</p>
+
+</li>
+</ul>
+
+<p>Returns: a Query.</p>
+
+<h2 id="expand-query-">expand(query)</h2>
+
+<p>Walk the hierarchy of a Query tree, descending through all PolyQuery nodes and calling expand_leaf() on any LeafQuery nodes encountered.</p>
+
+<ul>
+
+<li><p><b>query</b> - A Query object.</p>
+
+</li>
+</ul>
+
+<p>Returns: A Query -- usually the same one that was supplied after in-place modification, but possibly another.</p>
+
+<h2 id="expand_leaf-query-">expand_leaf(query)</h2>
+
+<p>Convert a LeafQuery into either a TermQuery, a PhraseQuery, or an ORQuery joining multiple TermQueries/PhraseQueries to accommodate multiple fields. LeafQuery text will be passed through the relevant Analyzer for each field. Quoted text will be transformed into PhraseQuery objects. Unquoted text will be converted to either a TermQuery or a PhraseQuery depending on how many tokens are generated.</p>
+
+<ul>
+
+<li><p><b>query</b> - A Query. Only LeafQuery objects will be processed; others will be passed through.</p>
+
+</li>
+</ul>
+
+<p>Returns: A Query.</p>
+
+<h2 id="prune-query-">prune(query)</h2>
+
+<p>Prevent certain Query structures from returning too many results. Query objects built via tree() and expand() can generate &quot;return the world&quot; result sets, such as in the case of <code>NOT a_term_not_in_the_index</code>; prune() walks the hierarchy and eliminates such branches.</p>
+
+<pre><code>     &#39;NOT foo&#39;               =&gt; [NOMATCH]
+     &#39;foo OR NOT bar&#39;        =&gt; &#39;foo&#39;
+     &#39;foo OR (-bar AND -baz) =&gt; &#39;foo&#39;</code></pre>
+
+<p>prune() also eliminates some double-negative constructs -- even though such constructs may not actually return the world:</p>
+
+<pre><code>     &#39;foo AND -(-bar)&#39;      =&gt; &#39;foo&#39;</code></pre>
+
+<p>In this example, safety is taking precedence over logical consistency. If you want logical consistency instead, call tree() then expand(), skipping prune().</p>
+
+<ul>
+
+<li><p><b>query</b> - A Query.</p>
+
+</li>
+</ul>
+
+<p>Returns: a Query; in most cases, the supplied Query after in-place modification.</p>
+
+<h2 id="set_heed_colons-heed_colons-">set_heed_colons(heed_colons)</h2>
+
+<p>Enable/disable parsing of <code>fieldname:foo</code> constructs.</p>
+
+<h2 id="make_term_query-labeled-params-">make_term_query( <i>[labeled params]</i> )</h2>
+
+<p>Factory method creating a TermQuery.</p>
+
+<ul>
+
+<li><p><b>field</b> - Field name.</p>
+
+</li>
+<li><p><b>term</b> - Term text.</p>
+
+</li>
+</ul>
+
+<p>Returns: A Query.</p>
+
+<h2 id="make_phrase_query-labeled-params-">make_phrase_query( <i>[labeled params]</i> )</h2>
+
+<p>Factory method creating a PhraseQuery.</p>
+
+<ul>
+
+<li><p><b>field</b> - Field that the phrase must occur in.</p>
+
+</li>
+<li><p><b>terms</b> - Ordered array of terms that must match.</p>
+
+</li>
+</ul>
+
+<p>Returns: A Query.</p>
+
+<h2 id="make_and_query-children-">make_and_query(children)</h2>
+
+<p>Factory method creating an ANDQuery.</p>
+
+<ul>
+
+<li><p><b>children</b> - Array of child Queries.</p>
+
+</li>
+</ul>
+
+<p>Returns: A Query.</p>
+
+<h2 id="make_or_query-children-">make_or_query(children)</h2>
+
+<p>Factory method creating an ORQuery.</p>
+
+<ul>
+
+<li><p><b>children</b> - Array of child Queries.</p>
+
+</li>
+</ul>
+
+<p>Returns: A Query.</p>
+
+<h2 id="make_not_query-negated_query-">make_not_query(negated_query)</h2>
+
+<p>Factory method creating a NOTQuery.</p>
+
+<ul>
+
+<li><p><b>negated_query</b> - Query to be inverted.</p>
+
+</li>
+</ul>
+
+<p>Returns: A Query.</p>
+
+<h2 id="make_req_opt_query-labeled-params-">make_req_opt_query( <i>[labeled params]</i> )</h2>
+
+<p>Factory method creating a RequiredOptionalQuery.</p>
+
+<ul>
+
+<li><p><b>required_query</b> - Query must must match.</p>
+
+</li>
+<li><p><b>optional_query</b> - Query which should match.</p>
+
+</li>
+</ul>
+
+<p>Returns: A Query.</p>
+
+<h1 id="INHERITANCE">INHERITANCE</h1>
+
+<p>Lucy::Search::QueryParser isa <a href="../../Lucy/Object/Obj.html">Lucy::Object::Obj</a>.</p>
+
+</body>
+</html>
+