|
|
@@ -0,0 +1,29 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!-- Reviewed: no -->
|
|
|
+<!-- EN-Revision: 19778 -->
|
|
|
+<sect1 id="learning.lucene.index-opening">
|
|
|
+ <title>インデックスのオープンと生成</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ 例えばインデックスの新規作成やインデックスへのドキュメント追加、
|
|
|
+ ドキュメント削除、インデックス全体の検索のような、
|
|
|
+ インデックスの操作は全てインデックス・オブジェクトが必要です。
|
|
|
+ オブジェクトは、下記の2つのメソッドのいずれかを用いて入手します。
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <example id="learning.lucene.index-opening.creation">
|
|
|
+ <title>Lucene インデックス生成</title>
|
|
|
+
|
|
|
+ <programlisting language="php"><![CDATA[
|
|
|
+$index = Zend_Search_Lucene::create($indexPath);
|
|
|
+]]></programlisting>
|
|
|
+ </example>
|
|
|
+
|
|
|
+ <example id="learning.lucene.index-opening.opening">
|
|
|
+ <title>Lucene インデックス・オープン</title>
|
|
|
+
|
|
|
+ <programlisting language="php"><![CDATA[
|
|
|
+$index = Zend_Search_Lucene::open($indexPath);
|
|
|
+]]></programlisting>
|
|
|
+ </example>
|
|
|
+</sect1>
|