Browse Source

ZF-6505: Add short blurb about Zend_Search_Lucene_MultiSearcher to manual page

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24795 44c647ce-9c0f-0410-b52a-842ac1e357ba
adamlundrigan 13 years ago
parent
commit
459d5d65c5

+ 14 - 0
documentation/manual/en/module_specs/Zend_Search_Lucene-Searching.xml

@@ -72,6 +72,20 @@ $index->find($query);
 ]]></programlisting>
 
         <para>
+            You can also search multiple indexes simultaneously using MultiSearcher, which operates
+            using the same <acronym>API</acronym> as searching on a single index:
+        </para>
+
+        <programlisting language="php"><![CDATA[
+$multi = new Zend_Search_Lucene_MultiSearcher();
+$multi->addIndex(Zend_Search_Lucene::open('/data/my_index_one');
+$multi->addIndex(Zend_Search_Lucene::open('/data/my_index_two');
+
+$multi->find($query);
+]]></programlisting>
+
+
+        <para>
             The <methodname>Zend_Search_Lucene::find()</methodname> method determines the input type
             automatically and uses the query parser to construct an appropriate
             <classname>Zend_Search_Lucene_Search_Query</classname> object from an input of type