You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/06/30 19:42:56 UTC

[lucy-commits] svn commit: r1498162 [3/5] - in /lucy/site/trunk/content/docs/test: ./ Lucy/ Lucy/Analysis/ Lucy/Docs/ Lucy/Docs/Cookbook/ Lucy/Docs/Tutorial/ Lucy/Document/ Lucy/Highlight/ Lucy/Index/ Lucy/Object/ Lucy/Plan/ Lucy/Search/ Lucy/Search/Collector/ Lucy/S...

Added: lucy/site/trunk/content/docs/test/Lucy/Index/IndexReader.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Index/IndexReader.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Index/IndexReader.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Index/IndexReader.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,134 @@
+Title: Lucy::Index::IndexReader - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Index::IndexReader - Read from an inverted index.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $reader = Lucy::Index::IndexReader-&#62;open(
+        index =&#62; &#39;/path/to/index&#39;,
+    );
+    my $seg_readers = $reader-&#62;seg_readers;
+    for my $seg_reader (@$seg_readers) {
+        my $seg_name = $seg_reader-&#62;get_segment-&#62;get_name;
+        my $num_docs = $seg_reader-&#62;doc_max;
+        print &#34;Segment $seg_name ($num_docs documents):\n&#34;;
+        my $doc_reader = $seg_reader-&#62;obtain(&#34;Lucy::Index::DocReader&#34;);
+        for my $doc_id ( 1 .. $num_docs ) {
+            my $doc = $doc_reader-&#62;fetch_doc($doc_id);
+            print &#34;  $doc_id: $doc-&#62;{title}\n&#34;;
+        }
+    }</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>IndexReader is the interface through which <a href="../../Lucy/Search/IndexSearcher.html" class="podlinkpod"
+>IndexSearcher</a> objects access the content of an index.</p>
+
+<p>IndexReader objects always represent a point-in-time view of an index as it existed at the moment the reader was created. If you want search results to reflect modifications to an index, you must create a new IndexReader after the update process completes.</p>
+
+<p>IndexReaders are composites; most of the work is done by individual <a href="../../Lucy/Index/DataReader.html" class="podlinkpod"
+>DataReader</a> sub-components, which may be accessed via fetch() and obtain(). The most efficient and powerful access to index data happens at the segment level via <a href="../../Lucy/Index/SegReader.html" class="podlinkpod"
+>SegReader</a>&#39;s sub-components.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="open(_[labeled_params]_)"
+>open( <i>[labeled params]</i> )</a></h2>
+
+<pre>    my $reader = Lucy::Index::IndexReader-&#62;open(
+        index    =&#62; &#39;/path/to/index&#39;, # required
+        snapshot =&#62; $snapshot,
+        manager  =&#62; $index_manager,
+    );</pre>
+
+<p>IndexReader is an abstract base class; open() returns the IndexReader subclass PolyReader, which channels the output of 0 or more SegReaders.</p>
+
+<ul>
+<li><b>index</b> - Either a string filepath or a Folder.</li>
+
+<li><b>snapshot</b> - A Snapshot. If not supplied, the most recent snapshot file will be used.</li>
+
+<li><b>manager</b> - An <a href="../../Lucy/Index/IndexManager.html" class="podlinkpod"
+>IndexManager</a>. Read-locking is off by default; supplying this argument turns it on.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="ABSTRACT_METHODS"
+>ABSTRACT METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="doc_max()"
+>doc_max()</a></h2>
+
+<p>Return the maximum number of documents available to the reader, which is also the highest possible internal document id. Documents which have been marked as deleted but not yet purged from the index are included in this count.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="doc_count()"
+>doc_count()</a></h2>
+
+<p>Return the number of documents available to the reader, subtracting any that are marked as deleted.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="del_count()"
+>del_count()</a></h2>
+
+<p>Return the number of documents which have been marked as deleted but not yet purged from the index.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="seg_readers()"
+>seg_readers()</a></h2>
+
+<p>Return an array of all the SegReaders represented within the IndexReader.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="offsets()"
+>offsets()</a></h2>
+
+<p>Return an array with one entry for each segment, corresponding to segment doc_id start offset.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="fetch(api)"
+>fetch(api)</a></h2>
+
+<p>Fetch a component, or return undef if the component can&#39;t be found.</p>
+
+<ul>
+<li><b>api</b> - The name of the DataReader subclass that the desired component must implement.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="obtain(api)"
+>obtain(api)</a></h2>
+
+<p>Fetch a component, or throw an error if the component can&#39;t be found.</p>
+
+<ul>
+<li><b>api</b> - The name of the DataReader subclass that the desired component must implement.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Index::IndexReader isa <a href="../../Lucy/Index/DataReader.html" class="podlinkpod"
+>Lucy::Index::DataReader</a> isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Index/Indexer.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Index/Indexer.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Index/Indexer.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Index/Indexer.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,177 @@
+Title: Lucy::Index::Indexer - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Index::Indexer - Build inverted indexes.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $indexer = Lucy::Index::Indexer-&#62;new(
+        schema =&#62; $schema,
+        index  =&#62; &#39;/path/to/index&#39;,
+        create =&#62; 1,
+    );
+    while ( my ( $title, $content ) = each %source_docs ) {
+        $indexer-&#62;add_doc({
+            title   =&#62; $title,
+            content =&#62; $content,
+        });
+    }
+    $indexer-&#62;commit;</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>The Indexer class is Apache Lucy&#39;s primary tool for managing the content of inverted indexes, which may later be searched using <a href="../../Lucy/Search/IndexSearcher.html" class="podlinkpod"
+>IndexSearcher</a>.</p>
+
+<p>In general, only one Indexer at a time may write to an index safely. If a write lock cannot be secured, new() will throw an exception.</p>
+
+<p>If an index is located on a shared volume, each writer application must identify itself by supplying an <a href="../../Lucy/Index/IndexManager.html" class="podlinkpod"
+>IndexManager</a> with a unique <code>host</code> id to Indexer&#39;s constructor or index corruption will occur. See <a href="../../Lucy/Docs/FileLocking.html" class="podlinkpod"
+>Lucy::Docs::FileLocking</a> for a detailed discussion.</p>
+
+<p>Note: at present, delete_by_term() and delete_by_query() only affect documents which had been previously committed to the index -- and not any documents added this indexing session but not yet committed. This may change in a future update.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="new(_[labeled_params]_)"
+>new( <i>[labeled params]</i> )</a></h2>
+
+<pre>    my $indexer = Lucy::Index::Indexer-&#62;new(
+        schema   =&#62; $schema,             # required at index creation
+        index    =&#62; &#39;/path/to/index&#39;,    # required
+        create   =&#62; 1,                   # default: 0
+        truncate =&#62; 1,                   # default: 0
+        manager  =&#62; $manager             # default: created internally
+    );</pre>
+
+<ul>
+<li><b>schema</b> - A Schema. Required when index is being created; if not supplied, will be extracted from the index folder.</li>
+
+<li><b>index</b> - Either a filepath to an index or a Folder.</li>
+
+<li><b>create</b> - If true and the index directory does not exist, attempt to create it.</li>
+
+<li><b>truncate</b> - If true, proceed with the intention of discarding all previous indexing data. The old data will remain intact and visible until commit() succeeds.</li>
+
+<li><b>manager</b> - An IndexManager.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="add_doc(...)"
+>add_doc(...)</a></h2>
+
+<pre>    $indexer-&#62;add_doc($doc);
+    $indexer-&#62;add_doc( { field_name =&#62; $field_value } );
+    $indexer-&#62;add_doc(
+        doc   =&#62; { field_name =&#62; $field_value },
+        boost =&#62; 2.5,         # default: 1.0
+    );</pre>
+
+<p>Add a document to the index. Accepts either a single argument or labeled params.</p>
+
+<ul>
+<li><b>doc</b> - Either a Lucy::Document::Doc object, or a hashref (which will be attached to a Lucy::Document::Doc object internally).</li>
+
+<li><b>boost</b> - A floating point weight which affects how this document scores.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="add_index(index)"
+>add_index(index)</a></h2>
+
+<p>Absorb an existing index into this one. The two indexes must have matching Schemas.</p>
+
+<ul>
+<li><b>index</b> - Either an index path name or a Folder.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="optimize()"
+>optimize()</a></h2>
+
+<p>Optimize the index for search-time performance. This may take a while, as it can involve rewriting large amounts of data.</p>
+
+<p>Every Indexer session which changes index content and ends in a commit() creates a new segment. Once written, segments are never modified. However, they are periodically recycled by feeding their content into the segment currently being written.</p>
+
+<p>The optimize() method causes all existing index content to be fed back into the Indexer. When commit() completes after an optimize(), the index will consist of one segment. So optimize() must be called before commit(). Also, optimizing a fresh index created from scratch has no effect.</p>
+
+<p>Historically, there was a significant search-time performance benefit to collapsing down to a single segment versus even two segments. Now the effect of collapsing is much less significant, and calling optimize() is rarely justified.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="commit()"
+>commit()</a></h2>
+
+<p>Commit any changes made to the index. Until this is called, none of the changes made during an indexing session are permanent.</p>
+
+<p>Calling commit() invalidates the Indexer, so if you want to make more changes you&#39;ll need a new one.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="prepare_commit()"
+>prepare_commit()</a></h2>
+
+<p>Perform the expensive setup for commit() in advance, so that commit() completes quickly. (If prepare_commit() is not called explicitly by the user, commit() will call it internally.)</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="delete_by_term(_[labeled_params]_)"
+>delete_by_term( <i>[labeled params]</i> )</a></h2>
+
+<p>Mark documents which contain the supplied term as deleted, so that they will be excluded from search results and eventually removed altogether. The change is not apparent to search apps until after commit() succeeds.</p>
+
+<ul>
+<li><b>field</b> - The name of an indexed field. (If it is not spec&#39;d as <code>indexed</code>, an error will occur.)</li>
+
+<li><b>term</b> - The term which identifies docs to be marked as deleted. If <code>field</code> is associated with an Analyzer, <code>term</code> will be processed automatically (so don&#39;t pre-process it yourself).</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="delete_by_query(query)"
+>delete_by_query(query)</a></h2>
+
+<p>Mark documents which match the supplied Query as deleted.</p>
+
+<ul>
+<li><b>query</b> - A <a href="../../Lucy/Search/Query.html" class="podlinkpod"
+>Query</a>.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="delete_by_doc_id(doc_id)"
+>delete_by_doc_id(doc_id)</a></h2>
+
+<p>Mark the document identified by the supplied document ID as deleted.</p>
+
+<ul>
+<li><b>doc_id</b> - A <a href="../../Lucy/Docs/DocIDs.html" class="podlinkpod"
+>document id</a>.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="get_schema()"
+>get_schema()</a></h2>
+
+<p>Accessor for schema.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Index::Indexer isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Index/Lexicon.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Index/Lexicon.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Index/Lexicon.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Index/Lexicon.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,71 @@
+Title: Lucy::Index::Lexicon - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Index::Lexicon - Iterator for a field&#39;s terms.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $lex_reader = $seg_reader-&#62;obtain(&#39;Lucy::Index::LexiconReader&#39;);
+    my $lexicon = $lex_reader-&#62;lexicon( field =&#62; &#39;content&#39; );
+    while ( $lexicon-&#62;next ) {
+       print $lexicon-&#62;get_term . &#34;\n&#34;;
+    }</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>A Lexicon is an iterator which provides access to all the unique terms for a given field in sorted order.</p>
+
+<p>If an index consists of two documents with a &#39;content&#39; field holding &#34;three blind mice&#34; and &#34;three musketeers&#34; respectively, then iterating through the &#39;content&#39; field&#39;s lexicon would produce this list:</p>
+
+<pre>    blind
+    mice
+    musketeers
+    three</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="ABSTRACT_METHODS"
+>ABSTRACT METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="seek(target)"
+>seek(target)</a></h2>
+
+<p>Seek the Lexicon to the first iterator state which is greater than or equal to <code>target</code>. If <code>target</code> is undef, reset the iterator.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="next()"
+>next()</a></h2>
+
+<p>Proceed to the next term.</p>
+
+<p>Returns: true until the iterator is exhausted, then false.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="get_term()"
+>get_term()</a></h2>
+
+<p>Return the current term, or undef if the iterator is not in a valid state.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="reset()"
+>reset()</a></h2>
+
+<p>Reset the iterator. next() must be called to proceed to the first element.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Index::Lexicon isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Index/LexiconReader.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Index/LexiconReader.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Index/LexiconReader.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Index/LexiconReader.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,54 @@
+Title: Lucy::Index::LexiconReader - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Index::LexiconReader - Read Lexicon data.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $lex_reader = $seg_reader-&#62;obtain(&#34;Lucy::Index::LexiconReader&#34;);
+    my $lexicon    = $lex_reader-&#62;lexicon( field =&#62; &#39;title&#39; );</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>LexiconReader reads term dictionary information.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="ABSTRACT_METHODS"
+>ABSTRACT METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="lexicon(_[labeled_params]_)"
+>lexicon( <i>[labeled params]</i> )</a></h2>
+
+<p>Return a new Lexicon for the given <code>field</code>. Will return undef if either the field is not indexed, or if no documents contain a value for the field.</p>
+
+<ul>
+<li><b>field</b> - Field name.</li>
+
+<li><b>term</b> - Pre-locate the Lexicon to this term.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="doc_freq(_[labeled_params]_)"
+>doc_freq( <i>[labeled params]</i> )</a></h2>
+
+<p>Return the number of documents where the specified term is present.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Index::LexiconReader isa <a href="../../Lucy/Index/DataReader.html" class="podlinkpod"
+>Lucy::Index::DataReader</a> isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Index/PolyReader.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Index/PolyReader.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Index/PolyReader.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Index/PolyReader.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,43 @@
+Title: Lucy::Index::PolyReader - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Index::PolyReader - Multi-segment implementation of IndexReader.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $polyreader = Lucy::Index::IndexReader-&#62;open( 
+        index =&#62; &#39;/path/to/index&#39;,
+    );
+    my $doc_reader = $polyreader-&#62;obtain(&#34;Lucy::Index::DocReader&#34;);
+    for my $doc_id ( 1 .. $polyreader-&#62;doc_max ) {
+        my $doc = $doc_reader-&#62;fetch_doc($doc_id);
+        print &#34; $doc_id: $doc-&#62;{title}\n&#34;;
+    }</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>PolyReader conflates index data from multiple segments. For instance, if an index contains three segments with 10 documents each, PolyReader&#39;s doc_max() method will return 30.</p>
+
+<p>Some of PolyReader&#39;s <a href="../../Lucy/Index/DataReader.html" class="podlinkpod"
+>DataReader</a> components may be less efficient or complete than the single-segment implementations accessed via <a href="../../Lucy/Index/SegReader.html" class="podlinkpod"
+>SegReader</a>.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Index::PolyReader isa <a href="../../Lucy/Index/IndexReader.html" class="podlinkpod"
+>Lucy::Index::IndexReader</a> isa <a href="../../Lucy/Index/DataReader.html" class="podlinkpod"
+>Lucy::Index::DataReader</a> isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Index/PostingList.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Index/PostingList.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Index/PostingList.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Index/PostingList.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,92 @@
+Title: Lucy::Index::PostingList - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Index::PostingList - Term-Document pairings.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $posting_list_reader 
+        = $seg_reader-&#62;obtain(&#34;Lucy::Index::PostingListReader&#34;);
+    my $posting_list = $posting_list_reader-&#62;posting_list( 
+        field =&#62; &#39;content&#39;,
+        term  =&#62; &#39;foo&#39;,
+    );
+    while ( my $doc_id = $posting_list-&#62;next ) {
+        say &#34;Matching doc id: $doc_id&#34;;
+    }</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>PostingList is an iterator which supplies a list of document ids that match a given term.</p>
+
+<p>See <a href="../../Lucy/Docs/IRTheory.html" class="podlinkpod"
+>Lucy::Docs::IRTheory</a> for definitions of &#34;posting&#34; and &#34;posting list&#34;.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="ABSTRACT_METHODS"
+>ABSTRACT METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="next()"
+>next()</a></h2>
+
+<p>Proceed to the next doc id.</p>
+
+<p>Returns: A positive doc id, or 0 once the iterator is exhausted.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="get_doc_id()"
+>get_doc_id()</a></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><a class='u' href='#___top' title='click to go to top of document'
+name="get_doc_freq()"
+>get_doc_freq()</a></h2>
+
+<p>Return the number of documents that the PostingList contains. (This number will include any documents which have been marked as deleted but not yet purged.)</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="seek(target)"
+>seek(target)</a></h2>
+
+<p>Prepare the PostingList object to iterate over matches for documents that match <code>target</code>.</p>
+
+<ul>
+<li><b>target</b> - The term to match. If undef, the iterator will be empty.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="advance(target)"
+>advance(target)</a></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><b>target</b> - A positive doc id, which must be greater than the current doc id once the iterator has been initialized.</li>
+</ul>
+
+<p>Returns: A positive doc id, or 0 once the iterator is exhausted.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Index::PostingList isa <a href="../../Lucy/Search/Matcher.html" class="podlinkpod"
+>Lucy::Search::Matcher</a> isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Index/PostingListReader.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Index/PostingListReader.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Index/PostingListReader.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Index/PostingListReader.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,53 @@
+Title: Lucy::Index::PostingListReader - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Index::PostingListReader - Read postings data.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $posting_list_reader 
+        = $seg_reader-&#62;obtain(&#34;Lucy::Index::PostingListReader&#34;);
+    my $posting_list = $posting_list_reader-&#62;posting_list(
+        field =&#62; &#39;title&#39;, 
+        term  =&#62; &#39;foo&#39;,
+    );</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>PostingListReaders produce <a href="../../Lucy/Index/PostingList.html" class="podlinkpod"
+>PostingList</a> objects which convey document matching information.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="ABSTRACT_METHODS"
+>ABSTRACT METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="posting_list(_[labeled_params]_)"
+>posting_list( <i>[labeled params]</i> )</a></h2>
+
+<p>Returns a PostingList, or undef if either <code>field</code> is undef or <code>field</code> is not present in any documents.</p>
+
+<ul>
+<li><b>field</b> - A field name.</li>
+
+<li><b>term</b> - If supplied, the PostingList will be pre-located to this term using seek().</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Index::PostingListReader isa <a href="../../Lucy/Index/DataReader.html" class="podlinkpod"
+>Lucy::Index::DataReader</a> isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Index/SegReader.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Index/SegReader.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Index/SegReader.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Index/SegReader.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,66 @@
+Title: Lucy::Index::SegReader - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Index::SegReader - Single-segment IndexReader.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $polyreader = Lucy::Index::IndexReader-&#62;open(
+        index =&#62; &#39;/path/to/index&#39;,
+    );
+    my $seg_readers = $polyreader-&#62;seg_readers;
+    for my $seg_reader (@$seg_readers) {
+        my $seg_name = $seg_reader-&#62;get_seg_name;
+        my $num_docs = $seg_reader-&#62;doc_max;
+        print &#34;Segment $seg_name ($num_docs documents):\n&#34;;
+        my $doc_reader = $seg_reader-&#62;obtain(&#34;Lucy::Index::DocReader&#34;);
+        for my $doc_id ( 1 .. $num_docs ) {
+            my $doc = $doc_reader-&#62;fetch_doc($doc_id);
+            print &#34;  $doc_id: $doc-&#62;{title}\n&#34;;
+        }
+    }</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>SegReader interprets the data within a single segment of an index.</p>
+
+<p>Generally speaking, only advanced users writing subclasses which manipulate data at the segment level need to deal with the SegReader API directly.</p>
+
+<p>Nearly all of SegReader&#39;s functionality is implemented by pluggable components spawned by <a href="../../Lucy/Plan/Architecture.html" class="podlinkpod"
+>Architecture</a>&#39;s factory methods.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="get_seg_name()"
+>get_seg_name()</a></h2>
+
+<p>Return the name of the segment.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="get_seg_num()"
+>get_seg_num()</a></h2>
+
+<p>Return the number of the segment.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Index::SegReader isa <a href="../../Lucy/Index/IndexReader.html" class="podlinkpod"
+>Lucy::Index::IndexReader</a> isa <a href="../../Lucy/Index/DataReader.html" class="podlinkpod"
+>Lucy::Index::DataReader</a> isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Index/SegWriter.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Index/SegWriter.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Index/SegWriter.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Index/SegWriter.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,79 @@
+Title: Lucy::Index::SegWriter - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Index::SegWriter - Write one segment of an index.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>SegWriter is a conduit through which information fed to Indexer passes.
+It manages <a href="../../Lucy/Index/Segment.html" class="podlinkpod"
+>Segment</a> and Inverter,
+invokes the <a href="../../Lucy/Analysis/Analyzer.html" class="podlinkpod"
+>Analyzer</a> chain,
+and feeds low level <a href="../../Lucy/Index/DataWriter.html" class="podlinkpod"
+>DataWriters</a> such as PostingListWriter and DocWriter.</p>
+
+<p>The sub-components of a SegWriter are determined by <a href="../../Lucy/Plan/Architecture.html" class="podlinkpod"
+>Architecture</a>.
+DataWriter components which are added to the stack of writers via add_writer() have add_inverted_doc() invoked for each document supplied to SegWriter&#39;s add_doc().</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="add_doc(_[labeled_params]_)"
+>add_doc( <i>[labeled params]</i> )</a></h2>
+
+<p>Add a document to the segment.
+Inverts <code>doc</code>,
+increments the Segment&#39;s internal document id,
+then calls add_inverted_doc(),
+feeding all sub-writers.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="add_writer(writer)"
+>add_writer(writer)</a></h2>
+
+<p>Add a DataWriter to the SegWriter&#39;s stack of writers.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="register(_[labeled_params]_)"
+>register( <i>[labeled params]</i> )</a></h2>
+
+<p>Register a DataWriter component with the SegWriter.
+(Note that registration simply makes the writer available via fetch(),
+so you may also want to call add_writer()).</p>
+
+<ul>
+<li><b>api</b> - The name of the DataWriter api which <code>writer</code> implements.</li>
+
+<li><b>component</b> - A DataWriter.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="fetch(api)"
+>fetch(api)</a></h2>
+
+<p>Retrieve a registered component.</p>
+
+<ul>
+<li><b>api</b> - The name of the DataWriter api which the component implements.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Index::SegWriter isa <a href="../../Lucy/Index/DataWriter.html" class="podlinkpod"
+>Lucy::Index::DataWriter</a> isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Index/Segment.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Index/Segment.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Index/Segment.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Index/Segment.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,134 @@
+Title: Lucy::Index::Segment - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Index::Segment - Warehouse for information about one segment of an inverted index.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    # Index-time.
+    package MyDataWriter;
+    use base qw( Lucy::Index::DataWriter );
+
+    sub finish {
+        my $self     = shift;
+        my $segment  = $self-&#62;get_segment;
+        my $metadata = $self-&#62;SUPER::metadata();
+        $metadata-&#62;{foo} = $self-&#62;get_foo;
+        $segment-&#62;store_metadata(
+            key       =&#62; &#39;my_component&#39;,
+            metadata  =&#62; $metadata
+        );
+    }
+
+    # Search-time.
+    package MyDataReader;
+    use base qw( Lucy::Index::DataReader );
+
+    sub new {
+        my $self     = shift-&#62;SUPER::new(@_);
+        my $segment  = $self-&#62;get_segment;
+        my $metadata = $segment-&#62;fetch_metadata(&#39;my_component&#39;);
+        if ($metadata) {
+            $self-&#62;set_foo( $metadata-&#62;{foo} );
+            ...
+        }
+        return $self;
+    }</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>Apache Lucy&#39;s indexes are made up of individual &#34;segments&#34;, 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 &#34;seg_&#34;: &#34;seg_2&#34;, &#34;seg_5a&#34;, 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 &#34;segmeta&#34; file serves as a central repository for metadata generated by other index components -- relieving them of the burden of storing metadata themselves.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="add_field(field)"
+>add_field(field)</a></h2>
+
+<p>Register a new field and assign it a field number. If the field was already known, nothing happens.</p>
+
+<ul>
+<li><b>field</b> - Field name.</li>
+</ul>
+
+<p>Returns: the field&#39;s field number, which is a positive integer.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="store_metadata(_[labeled_params]_)"
+>store_metadata( <i>[labeled params]</i> )</a></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><b>key</b> - String identifying an index component.</li>
+
+<li><b>metadata</b> - JSON-izable data structure.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="fetch_metadata(key)"
+>fetch_metadata(key)</a></h2>
+
+<p>Fetch a value from the Segment&#39;s metadata hash.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="field_num(field)"
+>field_num(field)</a></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><b>field</b> - Field name.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="field_name(field_num)"
+>field_name(field_num)</a></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><a class='u' href='#___top' title='click to go to top of document'
+name="get_name()"
+>get_name()</a></h2>
+
+<p>Getter for the object&#39;s seg name.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="get_number()"
+>get_number()</a></h2>
+
+<p>Getter for the segment number.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="set_count(count)"
+>set_count(count)</a></h2>
+
+<p>Setter for the object&#39;s document count.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="get_count()"
+>get_count()</a></h2>
+
+<p>Getter for the object&#39;s document count.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Index::Segment isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Index/Similarity.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Index/Similarity.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Index/Similarity.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Index/Similarity.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,69 @@
+Title: Lucy::Index::Similarity - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Index::Similarity - Judge how well a document matches a query.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    package MySimilarity;
+
+    sub length_norm { return 1.0 }    # disable length normalization
+
+    package MyFullTextType;
+    use base qw( Lucy::Plan::FullTextType );
+
+    sub make_similarity { MySimilarity-&#62;new }</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></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 &#34;similar&#34; 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><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="new()"
+>new()</a></h2>
+
+<pre>    my $sim = Lucy::Index::Similarity-&#62;new;</pre>
+
+<p>Constructor. Takes no arguments.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="length_norm(num_tokens)"
+>length_norm(num_tokens)</a></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 &#34;Kafka&#34; in a short article are given more heft than 5 mentions of &#34;Kafka&#34; 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><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Index::Similarity isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Index/Snapshot.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Index/Snapshot.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Index/Snapshot.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Index/Snapshot.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,116 @@
+Title: Lucy::Index::Snapshot - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Index::Snapshot - Point-in-time index file list.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $snapshot = Lucy::Index::Snapshot-&#62;new;
+    $snapshot-&#62;read_file( folder =&#62; $folder );    # load most recent snapshot
+    my $files = $snapshot-&#62;list;
+    print &#34;$_\n&#34; for @$files;</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></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" class="podlinkpod"
+>IndexReader</a> objects interpret the data associated with a single Snapshot.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="new()"
+>new()</a></h2>
+
+<pre>    my $snapshot = Lucy::Index::Snapshot-&#62;new;</pre>
+
+<p>Constructor. Takes no arguments.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="list()"
+>list()</a></h2>
+
+<p>Return an array of all entries.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="num_entries()"
+>num_entries()</a></h2>
+
+<p>Return the number of entries (including directories).</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="add_entry(entry)"
+>add_entry(entry)</a></h2>
+
+<p>Add a filepath to the snapshot.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="delete_entry(entry)"
+>delete_entry(entry)</a></h2>
+
+<p>Delete a filepath from the snapshot.</p>
+
+<p>Returns: true if the entry existed and was successfully deleted, false otherwise.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="read_file(_[labeled_params]_)"
+>read_file( <i>[labeled params]</i> )</a></h2>
+
+<p>Decode a snapshot file and initialize the object to reflect its contents.</p>
+
+<ul>
+<li><b>folder</b> - A Folder.</li>
+
+<li><b>path</b> - The location of the snapshot file. If not supplied, the most recent snapshot file in the base directory will be chosen.</li>
+</ul>
+
+<p>Returns: the object, allowing an assignment idiom.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="write_file(_[labeled_params]_)"
+>write_file( <i>[labeled params]</i> )</a></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><b>folder</b> - A Folder.</li>
+
+<li><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.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="set_path(path)"
+>set_path(path)</a></h2>
+
+<p>Set the path to the file that the Snapshot object serves as a proxy for.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="get_path()"
+>get_path()</a></h2>
+
+<p>Get the path to the snapshot file. Initially undef; updated by read_file(), write_file(), and set_path().</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Index::Snapshot isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Object/BitVector.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Object/BitVector.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Object/BitVector.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Object/BitVector.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,181 @@
+Title: Lucy::Object::BitVector - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Object::BitVector - An array of bits.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $bit_vec = Lucy::Object::BitVector-&#62;new( capacity =&#62; 8 );
+    my $other   = Lucy::Object::BitVector-&#62;new( capacity =&#62; 8 );
+    $bit_vec-&#62;set($_) for ( 0, 2, 4, 6 );
+    $other-&#62;set($_)   for ( 1, 3, 5, 7 );
+    $bit_vec-&#62;or($other);
+    print &#34;$_\n&#34; for @{ $bit_vec-&#62;to_array };    # prints 0 through 7.</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>BitVector is a growable array of bits. All bits are initially zero.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="new(_[labeled_params]_)"
+>new( <i>[labeled params]</i> )</a></h2>
+
+<pre>    my $bit_vec = Lucy::Object::BitVector-&#62;new( 
+        capacity =&#62; $doc_max + 1,   # default 0,
+    );</pre>
+
+<ul>
+<li><b>capacity</b> - The number of bits that the initial array should be able to hold.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="get(tick)"
+>get(tick)</a></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><b>tick</b> - The requested bit.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="set(tick)"
+>set(tick)</a></h2>
+
+<p>Set the bit at <code>tick</code> to 1.</p>
+
+<ul>
+<li><b>tick</b> - The bit to be set.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="clear(tick)"
+>clear(tick)</a></h2>
+
+<p>Clear the indicated bit. (i.e. set it to 0).</p>
+
+<ul>
+<li><b>tick</b> - The bit to be cleared.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="clear_all()"
+>clear_all()</a></h2>
+
+<p>Clear all bits.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="and(other)"
+>and(other)</a></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><b>other</b> - Another BitVector.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="or(other)"
+>or(other)</a></h2>
+
+<p>Modify the BitVector, setting all bits which are set in the other BitVector if they were not already set.</p>
+
+<ul>
+<li><b>other</b> - Another BitVector.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="and_not(other)"
+>and_not(other)</a></h2>
+
+<p>Modify the BitVector, clearing all bits which are set in the other.</p>
+
+<ul>
+<li><b>other</b> - Another BitVector.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="xor(other)"
+>xor(other)</a></h2>
+
+<p>Modify the BitVector, performing an XOR operation against the other.</p>
+
+<ul>
+<li><b>other</b> - Another BitVector.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="flip(tick)"
+>flip(tick)</a></h2>
+
+<p>Invert the value of a bit.</p>
+
+<ul>
+<li><b>tick</b> - The bit to invert.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="flip_block(_[labeled_params]_)"
+>flip_block( <i>[labeled params]</i> )</a></h2>
+
+<p>Invert each bit within a contiguous block.</p>
+
+<ul>
+<li><b>offset</b> - Lower bound.</li>
+
+<li><b>length</b> - The number of bits to flip.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="next_hit(tick)"
+>next_hit(tick)</a></h2>
+
+<p>Returns the next set bit equal to or greater than <code>tick</code>, or -1 if no such bit exists.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="to_array()"
+>to_array()</a></h2>
+
+<p>Return an array where each element represents a set bit.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="grow(capacity)"
+>grow(capacity)</a></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><b>capacity</b> - Least number of bits the BitVector should accomodate.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="count()"
+>count()</a></h2>
+
+<p>Return a count of the number of set bits.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Object::BitVector isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Object/Obj.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Object/Obj.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Object/Obj.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Object/Obj.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,18 @@
+Title: Lucy::Object::Obj - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Object::Obj - Moved.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="MOVED"
+>MOVED</a></h1>
+
+<p>Lucy::Object::Obj has been moved to Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Plan/Architecture.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Plan/Architecture.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Plan/Architecture.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Plan/Architecture.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,109 @@
+Title: Lucy::Plan::Architecture - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Plan::Architecture - Configure major components of an index.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    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-&#62;new(
+            snapshot   =&#62; $seg_writer-&#62;get_snapshot,
+            segment    =&#62; $seg_writer-&#62;get_segment,
+            polyreader =&#62; $seg_writer-&#62;get_polyreader,
+        );  
+        $seg_writer-&#62;register(
+            api       =&#62; &#34;Lucy::Index::DocReader&#34;,
+            component =&#62; $doc_writer,
+        );  
+        $seg_writer-&#62;add_writer($doc_writer);
+    }
+
+    sub register_doc_reader {
+        my ( $self, $seg_reader ) = @_; 
+        my $doc_reader = LucyX::Index::ZlibDocReader-&#62;new(
+            schema   =&#62; $seg_reader-&#62;get_schema,
+            folder   =&#62; $seg_reader-&#62;get_folder,
+            segments =&#62; $seg_reader-&#62;get_segments,
+            seg_tick =&#62; $seg_reader-&#62;get_seg_tick,
+            snapshot =&#62; $seg_reader-&#62;get_snapshot,
+        );  
+        $seg_reader-&#62;register(
+            api       =&#62; &#39;Lucy::Index::DocReader&#39;,
+            component =&#62; $doc_reader,
+        );  
+    }
+ 
+    package MySchema;
+    use base qw( Lucy::Plan::Schema );
+    
+    sub architecture { 
+        shift;
+        return MyArchitecture-&#62;new(@_); 
+    }</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></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" class="podlinkpod"
+>SegWriter</a> and <a href="../../Lucy/Index/SegReader.html" class="podlinkpod"
+>SegReader</a>.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="new()"
+>new()</a></h2>
+
+<pre>    my $arch = Lucy::Plan::Architecture-&#62;new;</pre>
+
+<p>Constructor. Takes no arguments.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="register_doc_writer(writer)"
+>register_doc_writer(writer)</a></h2>
+
+<p>Spawn a DataWriter and register() it with the supplied SegWriter, adding it to the SegWriter&#39;s writer stack.</p>
+
+<ul>
+<li><b>writer</b> - A SegWriter.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="register_doc_reader(reader)"
+>register_doc_reader(reader)</a></h2>
+
+<p>Spawn a DocReader and register() it with the supplied SegReader.</p>
+
+<ul>
+<li><b>reader</b> - A SegReader.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Plan::Architecture isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Plan/BlobType.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Plan/BlobType.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Plan/BlobType.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Plan/BlobType.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,51 @@
+Title: Lucy::Plan::BlobType - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Plan::BlobType - Default behaviors for binary fields.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $string_type = Lucy::Plan::StringType-&#62;new;
+    my $blob_type   = Lucy::Plan::BlobType-&#62;new( stored =&#62; 1 );
+    my $schema      = Lucy::Plan::Schema-&#62;new;
+    $schema-&#62;spec_field( name =&#62; &#39;id&#39;,   type =&#62; $string_type );
+    $schema-&#62;spec_field( name =&#62; &#39;jpeg&#39;, type =&#62; $blob_type );</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></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><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="new(_[labeled_params]_)"
+>new( <i>[labeled params]</i> )</a></h2>
+
+<pre>    my $blob_type = Lucy::Plan::BlobType-&#62;new(
+        stored =&#62; 1,  # default: false
+    );</pre>
+
+<ul>
+<li><b>stored</b> - boolean indicating whether the field should be stored.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Plan::BlobType isa <a href="../../Lucy/Plan/FieldType.html" class="podlinkpod"
+>Lucy::Plan::FieldType</a> isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Plan/FieldType.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Plan/FieldType.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Plan/FieldType.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Plan/FieldType.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,84 @@
+Title: Lucy::Plan::FieldType - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Plan::FieldType - Define a field&#39;s behavior.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my @sortable;
+    for my $field ( @{ $schema-&#62;all_fields } ) {
+        my $type = $schema-&#62;fetch_type($field);
+        next unless $type-&#62;sortable;
+        push @sortable, $field;
+    }</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></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" class="podlinkpod"
+>Similarity</a> object which defines matching and scoring behavior for the field. It is required if the field is <code>indexed</code>.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="get_boost()"
+>get_boost()</a></h2>
+
+<p>Accessor for <code>boost</code>.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="indexed()"
+>indexed()</a></h2>
+
+<p>Accessor for <code>indexed</code>.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="stored()"
+>stored()</a></h2>
+
+<p>Accessor for <code>stored</code>.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="sortable()"
+>sortable()</a></h2>
+
+<p>Accessor for <code>sortable</code>.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="binary()"
+>binary()</a></h2>
+
+<p>Indicate whether the field contains binary data.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Plan::FieldType isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Plan/FullTextType.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Plan/FullTextType.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Plan/FullTextType.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Plan/FullTextType.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,94 @@
+Title: Lucy::Plan::FullTextType - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Plan::FullTextType - Full-text search field type.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $easyanalyzer = Lucy::Analysis::EasyAnalyzer-&#62;new(
+        language =&#62; &#39;en&#39;,
+    );
+    my $type = Lucy::Plan::FullTextType-&#62;new(
+        analyzer =&#62; $easyanalyzer,
+    );
+    my $schema = Lucy::Plan::Schema-&#62;new;
+    $schema-&#62;spec_field( name =&#62; &#39;title&#39;,   type =&#62; $type );
+    $schema-&#62;spec_field( name =&#62; &#39;content&#39;, type =&#62; $type );</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>Lucy::Plan::FullTextType is an implementation of <a href="../../Lucy/Plan/FieldType.html" class="podlinkpod"
+>Lucy::Plan::FieldType</a> tuned for &#34;full text search&#34;.</p>
+
+<p>Full text fields are associated with an <a href="../../Lucy/Analysis/Analyzer.html" class="podlinkpod"
+>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" class="podlinkpod"
+>StringType</a>.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="new(_[labeled_params]_)"
+>new( <i>[labeled params]</i> )</a></h2>
+
+<pre>    my $type = Lucy::Plan::FullTextType-&#62;new(
+        analyzer      =&#62; $analyzer,    # required
+        boost         =&#62; 2.0,          # default: 1.0
+        indexed       =&#62; 1,            # default: true
+        stored        =&#62; 1,            # default: true
+        sortable      =&#62; 1,            # default: false
+        highlightable =&#62; 1,            # default: false
+    );</pre>
+
+<ul>
+<li><b>analyzer</b> - An Analyzer.</li>
+
+<li><b>boost</b> - floating point per-field boost.</li>
+
+<li><b>indexed</b> - boolean indicating whether the field should be indexed.</li>
+
+<li><b>stored</b> - boolean indicating whether the field should be stored.</li>
+
+<li><b>sortable</b> - boolean indicating whether the field should be sortable.</li>
+
+<li><b>highlightable</b> - boolean indicating whether the field should be highlightable.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="set_highlightable(highlightable)"
+>set_highlightable(highlightable)</a></h2>
+
+<p>Indicate whether to store data required by <a href="../../Lucy/Highlight/Highlighter.html" class="podlinkpod"
+>Lucy::Highlight::Highlighter</a> for excerpt selection and search term highlighting.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="highlightable()"
+>highlightable()</a></h2>
+
+<p>Accessor for &#34;highlightable&#34; property.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Plan::FullTextType isa Lucy::Plan::TextType isa <a href="../../Lucy/Plan/FieldType.html" class="podlinkpod"
+>Lucy::Plan::FieldType</a> isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Plan/Schema.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Plan/Schema.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Plan/Schema.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Plan/Schema.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,116 @@
+Title: Lucy::Plan::Schema - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Plan::Schema - User-created specification for an inverted index.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    use Lucy::Plan::Schema;
+    use Lucy::Plan::FullTextType;
+    use Lucy::Analysis::EasyAnalyzer;
+    
+    my $schema = Lucy::Plan::Schema-&#62;new;
+    my $easyanalyzer = Lucy::Analysis::EasyAnalyzer-&#62;new(
+        language =&#62; &#39;en&#39;,
+    );
+    my $type = Lucy::Plan::FullTextType-&#62;new(
+        analyzer =&#62; $easyanalyzer,
+    );
+    $schema-&#62;spec_field( name =&#62; &#39;title&#39;,   type =&#62; $type );
+    $schema-&#62;spec_field( name =&#62; &#39;content&#39;, type =&#62; $type );</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></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><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="new()"
+>new()</a></h2>
+
+<pre>    my $schema = Lucy::Plan::Schema-&#62;new;</pre>
+
+<p>Constructor. Takes no arguments.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="spec_field(_[labeled_params]_)"
+>spec_field( <i>[labeled params]</i> )</a></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><b>name</b> - The name of the field.</li>
+
+<li><b>type</b> - A FieldType.</li>
+</ul>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="num_fields()"
+>num_fields()</a></h2>
+
+<p>Return the number of fields currently defined.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="all_fields()"
+>all_fields()</a></h2>
+
+<p>Return all the Schema&#39;s field names as an array.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="fetch_type(field)"
+>fetch_type(field)</a></h2>
+
+<p>Return the FieldType for the specified field. If the field can&#39;t be found, return undef.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="fetch_sim(field)"
+>fetch_sim(field)</a></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><a class='u' href='#___top' title='click to go to top of document'
+name="architecture()"
+>architecture()</a></h2>
+
+<p>Factory method which creates an Architecture object for this index.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="get_architecture()"
+>get_architecture()</a></h2>
+
+<p>Return the Schema instance&#39;s internal Architecture object.</p>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="get_similarity()"
+>get_similarity()</a></h2>
+
+<p>Return the Schema instance&#39;s internal Similarity object.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Plan::Schema isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Plan/StringType.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Plan/StringType.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Plan/StringType.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Plan/StringType.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,58 @@
+Title: Lucy::Plan::StringType - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Plan::StringType - Non-tokenized text type.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $type   = Lucy::Plan::StringType-&#62;new;
+    my $schema = Lucy::Plan::Schema-&#62;new;
+    $schema-&#62;spec_field( name =&#62; &#39;category&#39;, type =&#62; $type );</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>Lucy::Plan::StringType is used for &#34;exact-match&#34; strings.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="new()"
+>new()</a></h2>
+
+<pre>    my $type = Lucy::Plan::StringType-&#62;new(
+        boost    =&#62; 0.1,    # default: 1.0
+        indexed  =&#62; 1,      # default: true
+        stored   =&#62; 1,      # default: true
+        sortable =&#62; 1,      # default: false
+    );</pre>
+
+<ul>
+<li><b>boost</b> - floating point per-field boost.</li>
+
+<li><b>indexed</b> - boolean indicating whether the field should be indexed.</li>
+
+<li><b>stored</b> - boolean indicating whether the field should be stored.</li>
+
+<li><b>sortable</b> - boolean indicating whether the field should be sortable.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Plan::StringType isa Lucy::Plan::TextType isa <a href="../../Lucy/Plan/FieldType.html" class="podlinkpod"
+>Lucy::Plan::FieldType</a> isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Search/ANDQuery.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Search/ANDQuery.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Search/ANDQuery.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Search/ANDQuery.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,63 @@
+Title: Lucy::Search::ANDQuery - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Search::ANDQuery - Intersect multiple result sets.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $foo_and_bar_query = Lucy::Search::ANDQuery-&#62;new(
+        children =&#62; [ $foo_query, $bar_query ],
+    );
+    my $hits = $searcher-&#62;hits( query =&#62; $foo_and_bar_query );
+    ...</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>ANDQuery is a composite <a href="../../Lucy/Search/Query.html" class="podlinkpod"
+>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><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="new(_[labeled_params]_)"
+>new( <i>[labeled params]</i> )</a></h2>
+
+<pre>    my $foo_and_bar_query = Lucy::Search::ANDQuery-&#62;new(
+        children =&#62; [ $foo_query, $bar_query ],
+    );</pre>
+
+<ul>
+<li><b>children</b> - An array of child Queries.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="add_child(query)"
+>add_child(query)</a></h2>
+
+<p>Add a child Query node.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Search::ANDQuery isa <a href="../../Lucy/Search/PolyQuery.html" class="podlinkpod"
+>Lucy::Search::PolyQuery</a> isa <a href="../../Lucy/Search/Query.html" class="podlinkpod"
+>Lucy::Search::Query</a> isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Search/Collector.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Search/Collector.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Search/Collector.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Search/Collector.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,67 @@
+Title: Lucy::Search::Collector - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Search::Collector - Process hits.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    # Abstract base class.</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>A Collector decides what to do with the hits that a <a href="../../Lucy/Search/Matcher.html" class="podlinkpod"
+>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><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="new()"
+>new()</a></h2>
+
+<pre>    package MyCollector;
+    use base qw( Lucy::Search::Collector );
+    our %foo;
+    sub new {
+        my $self = shift-&#62;SUPER::new;
+        my %args = @_;
+        $foo{$$self} = $args{foo};
+        return $self;
+    }</pre>
+
+<p>Abstract constructor. Takes no arguments.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="ABSTRACT_METHODS"
+>ABSTRACT METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="collect(doc_id)"
+>collect(doc_id)</a></h2>
+
+<p>Do something with a doc id. (For instance, keep track of the docs with the ten highest scores.)</p>
+
+<ul>
+<li><b>doc_id</b> - A segment document id.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Search::Collector isa Clownfish::Obj.</p>
+
+</div>

Added: lucy/site/trunk/content/docs/test/Lucy/Search/Collector/BitCollector.mdtext
URL: http://svn.apache.org/viewvc/lucy/site/trunk/content/docs/test/Lucy/Search/Collector/BitCollector.mdtext?rev=1498162&view=auto
==============================================================================
--- lucy/site/trunk/content/docs/test/Lucy/Search/Collector/BitCollector.mdtext (added)
+++ lucy/site/trunk/content/docs/test/Lucy/Search/Collector/BitCollector.mdtext Sun Jun 30 17:42:54 2013
@@ -0,0 +1,67 @@
+Title: Lucy::Search::Collector::BitCollector - Apache Lucy Documentation
+
+<div>
+<a name='___top' class='dummyTopAnchor' ></a>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="NAME"
+>NAME</a></h1>
+
+<p>Lucy::Search::Collector::BitCollector - Collector which records doc nums in a BitVector.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="SYNOPSIS"
+>SYNOPSIS</a></h1>
+
+<pre>    my $bit_vec = Lucy::Object::BitVector-&#62;new(
+        capacity =&#62; $searcher-&#62;doc_max + 1,
+    );
+    my $bit_collector = Lucy::Search::Collector::BitCollector-&#62;new(
+        bit_vector =&#62; $bit_vec, 
+    );
+    $searcher-&#62;collect(
+        collector =&#62; $bit_collector,
+        query     =&#62; $query,
+    );</pre>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="DESCRIPTION"
+>DESCRIPTION</a></h1>
+
+<p>BitCollector is a Collector which saves matching document ids in a <a href="../../../Lucy/Object/BitVector.html" class="podlinkpod"
+>BitVector</a>. It is useful for recording the entire set of documents which matches a query.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="CONSTRUCTORS"
+>CONSTRUCTORS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="new(_[labeled_params]_)"
+>new( <i>[labeled params]</i> )</a></h2>
+
+<pre>    my $bit_collector = Lucy::Search::Collector::BitCollector-&#62;new(
+        bit_vector =&#62; $bit_vec,    # required
+    );</pre>
+
+<ul>
+<li><b>bit_vector</b> - A Lucy::Object::BitVector.</li>
+</ul>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="METHODS"
+>METHODS</a></h1>
+
+<h2><a class='u' href='#___top' title='click to go to top of document'
+name="collect(doc_id)"
+>collect(doc_id)</a></h2>
+
+<p>Set bit in the object&#39;s BitVector for the supplied doc id.</p>
+
+<h1><a class='u' href='#___top' title='click to go to top of document'
+name="INHERITANCE"
+>INHERITANCE</a></h1>
+
+<p>Lucy::Search::Collector::BitCollector isa <a href="../../../Lucy/Search/Collector.html" class="podlinkpod"
+>Lucy::Search::Collector</a> isa Clownfish::Obj.</p>
+
+</div>