[GENERIC] Zend_Translate:
[zend.git] / documentation / manual / en / tutorials / lucene-index-opening.xml
blob76c29abdcc3625c7db4404f8b2464204bb321795
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Reviewed: no -->
3 <sect1 id="learning.lucene.index-opening">
4     <title>Index Opening and Creation</title>
6     <para>
7         All index operations (e.g., creating a new index, adding a document to the index, deleting a
8         document, searching through the index) need an index object. One can be obtained using one
9         of the following two methods.
10     </para>
12     <example id="learning.lucene.index-opening.creation">
13         <title>Lucene Index Creation</title>
15         <programlisting language="php"><![CDATA[
16 $index = Zend_Search_Lucene::create($indexPath);
17 ]]></programlisting>
18     </example>
20     <example id="learning.lucene.index-opening.opening">
21         <title>Lucene Index Opening</title>
23         <programlisting language="php"><![CDATA[
24 $index = Zend_Search_Lucene::open($indexPath);
25 ]]></programlisting>
26     </example>
27 </sect1>