Przeglądaj źródła

[DOCUMENT]sync en

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24802 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 13 lat temu
rodzic
commit
83bba2f18d

+ 23 - 1
documentation/manual/ja/module_specs/Zend_Application-AvailableResources-Frontcontroller.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 24249 -->
+<!-- EN-Revision: 24798 -->
 <sect2 id="zend.application.available-resources.frontcontroller">
     <title>Zend_Application_Resource_Frontcontroller(日本語)</title>
 
@@ -101,6 +101,28 @@
                 値は、ブーリアンでなければなりません。デフォルトで、これは無効です。
             </para>
         </listitem>
+
+        <!-- TODO : to be translated -->
+        <listitem>
+            <para>
+                <emphasis><property>dispatcher</property></emphasis>: allows overriding the default 
+                dispatcher.  Has two subkeys, <property>class</property> (the classname of new dispatcher)
+                and <property>params</property>, an array of parameters to pass to the dispatcher constructor.
+            </para>
+            
+            <example id="zend.application.available-resources.frontcontroller.configExample">
+                <title>ディスパッチャーを上書き</title>
+
+                <programlisting language="ini"><![CDATA[
+        [production]
+        resources.frontController.dispatcher.class = "My_Custom_Dispatcher"
+        resources.frontController.dispatcher.params.foo = "bar"
+        resources.frontController.dispatcher.params.baz = "grok"
+        ]]></programlisting>
+            </example>
+
+        </listitem>
+
     </itemizedlist>
 
     <para>

+ 16 - 1
documentation/manual/ja/module_specs/Zend_Search_Lucene-Searching.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
-<!-- EN-Revision: 24249 -->
+<!-- EN-Revision: 24795 -->
 <sect1 id="zend.search.lucene.searching">
     <title>インデックスの検索</title>
 
@@ -67,6 +67,21 @@ $index = Zend_Search_Lucene::open('/data/my_index');
 
 $index->find($query);
 ]]></programlisting>
+
+        <!-- TODO : to be translated -->
+        <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>
             <methodname>Zend_Search_Lucene::find()</methodname> メソッドは、
             入力の型を自動的に判別し、クエリパーサを使用して文字列から