Forráskód Böngészése

[DOCUMENTATION] English: manual fixes

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19807 44c647ce-9c0f-0410-b52a-842ac1e357ba
mikaelkael 16 éve
szülő
commit
529334cd42

+ 13 - 12
documentation/manual/en/tutorials/lucene-index-structure.xml

@@ -20,22 +20,23 @@
                 Lucene 2.3, document storage files can be shared between segments; however,
                 Lucene 2.3, document storage files can be shared between segments; however,
                 <classname>Zend_Search_Lucene</classname> doesn't use this
                 <classname>Zend_Search_Lucene</classname> doesn't use this
                 capability</para></footnote>. All segment data is stored in
                 capability</para></footnote>. All segment data is stored in
-        <filename>_xxxxx.cfs</filename> files, where <varname>xxxxx</varname> is a segment name.
+        <filename>_xxxxx.cfs</filename> files, where <emphasis>xxxxx</emphasis> is a segment name.
     </para>
     </para>
 
 
     <para>
     <para>
-        Once an index segment file is created, it can't be updated.  New documents are added to new
-        segments.  Deleted documents are only marked as deleted in an optional
+        Once an index segment file is created, it can't be updated. New documents are added to new
+        segments. Deleted documents are only marked as deleted in an optional
         <filename>&lt;segmentname&gt;.del</filename> file.
         <filename>&lt;segmentname&gt;.del</filename> file.
     </para>
     </para>
 
 
     <para>
     <para>
         Document updating is performed as separate delete and add operations, even though it's done
         Document updating is performed as separate delete and add operations, even though it's done
-        using an <methodname>update()</methodname> API call<footnote><para>This call is provided
-                only by Java Lucene now, but it's planned to extend the
-                <classname>Zend_Search_Lucene</classname> API with similar
-                functionality</para></footnote>.  This simplifies adding new documents, and allows
-        updating concurrently with search operations.
+        using an <methodname>update()</methodname> <acronym>API</acronym> call
+        <footnote><para>This call is provided only by Java Lucene now, but it's planned to extend
+            the <classname>Zend_Search_Lucene</classname> <acronym>API</acronym> with similar
+            functionality</para></footnote>.
+        This simplifies adding new documents, and allows updating concurrently with search
+        operations.
     </para>
     </para>
 
 
     <para>
     <para>
@@ -88,21 +89,21 @@
     <itemizedlist>
     <itemizedlist>
         <listitem>
         <listitem>
             <para>
             <para>
-                <varname>MaxBufferedDocs</varname> (the minimal number of documents required before
-                the buffered in-memory documents are written into a new segment);
+                <emphasis>MaxBufferedDocs</emphasis> (the minimal number of documents required
+                before the buffered in-memory documents are written into a new segment);
             </para>
             </para>
         </listitem>
         </listitem>
 
 
         <listitem>
         <listitem>
             <para>
             <para>
-                <varname>MaxMergeDocs</varname> (the largest number of documents ever merged by
+                <emphasis>MaxMergeDocs</emphasis> (the largest number of documents ever merged by
                 an optimization operation); and
                 an optimization operation); and
             </para>
             </para>
         </listitem>
         </listitem>
 
 
         <listitem>
         <listitem>
             <para>
             <para>
-                <varname>MergeFactor</varname> (which determines how often segment indices are
+                <emphasis>MergeFactor</emphasis> (which determines how often segment indices are
                 merged by auto-optimization operations).
                 merged by auto-optimization operations).
             </para>
             </para>
         </listitem>
         </listitem>

+ 3 - 3
documentation/manual/en/tutorials/lucene-indexing.xml

@@ -55,8 +55,8 @@ $doc = Zend_Search_Lucene_Document_Xlsx::loadXlsxFile($path);
         </para>
         </para>
 
 
         <para>
         <para>
-            You may need an on-demand indexing configuration (something like OLTP system). In such
-            systems, you usually add one document per user request. As such, the
+            You may need an on-demand indexing configuration (something like <acronym>OLTP</acronym>
+            system). In such systems, you usually add one document per user request. As such, the
             <emphasis>MaxBufferedDocs</emphasis> option will not affect the system. On the other
             <emphasis>MaxBufferedDocs</emphasis> option will not affect the system. On the other
             hand, <emphasis>MaxMergeDocs</emphasis> is really helpful as it allows you to limit
             hand, <emphasis>MaxMergeDocs</emphasis> is really helpful as it allows you to limit
             maximum script execution time. <emphasis>MergeFactor</emphasis> should be set to a value
             maximum script execution time. <emphasis>MergeFactor</emphasis> should be set to a value
@@ -68,7 +68,7 @@ $doc = Zend_Search_Lucene_Document_Xlsx::loadXlsxFile($path);
         <para>
         <para>
             If you will be primarily performing batch index updates, your configuration should use a
             If you will be primarily performing batch index updates, your configuration should use a
             <emphasis>MaxBufferedDocs</emphasis> option set to the maximum value supported by the
             <emphasis>MaxBufferedDocs</emphasis> option set to the maximum value supported by the
-            available amount of memory.  <emphasis>MaxMergeDocs</emphasis> and
+            available amount of memory. <emphasis>MaxMergeDocs</emphasis> and
             <emphasis>MergeFactor</emphasis> have to be set to values reducing auto-optimization
             <emphasis>MergeFactor</emphasis> have to be set to values reducing auto-optimization
             involvement as much as possible <footnote><para>An additional limit is the maximum file
             involvement as much as possible <footnote><para>An additional limit is the maximum file
                     handlers supported by the operation system for concurrent open
                     handlers supported by the operation system for concurrent open

+ 8 - 8
documentation/manual/en/tutorials/lucene-intro.xml

@@ -5,16 +5,16 @@
 
 
     <para>
     <para>
         The <classname>Zend_Search_Lucene</classname> component is intended to provide a
         The <classname>Zend_Search_Lucene</classname> component is intended to provide a
-        ready-for-use full-text search solution.  It doesn't require any PHP
+        ready-for-use full-text search solution. It doesn't require any <acronym>PHP</acronym>
         extensions<footnote><para>Though some <acronym>UTF-8</acronym> processing functionality
         extensions<footnote><para>Though some <acronym>UTF-8</acronym> processing functionality
-                requires the <classname>mbstring</classname> extension to be turned
+                requires the <emphasis>mbstring</emphasis> extension to be turned
                 on</para></footnote> or additional software to be installed, and can be used
                 on</para></footnote> or additional software to be installed, and can be used
         immediately after Zend Framework installation.
         immediately after Zend Framework installation.
     </para>
     </para>
 
 
     <para>
     <para>
-        <classname>Zend_Search_Lucene</classname> is a pure PHP port of the popular open source
-        full-text search engine known as Apache Lucene.  See <ulink
+        <classname>Zend_Search_Lucene</classname> is a pure <acronym>PHP</acronym> port of the
+        popular open source full-text search engine known as Apache Lucene. See <ulink
             url="http://lucene.apache.org">http://lucene.apache.org/</ulink> for the details.
             url="http://lucene.apache.org">http://lucene.apache.org/</ulink> for the details.
     </para>
     </para>
 
 
@@ -40,7 +40,7 @@
     <para>
     <para>
         Several analyzers are provided within the <classname>Zend_Search_Lucene</classname> package.
         Several analyzers are provided within the <classname>Zend_Search_Lucene</classname> package.
         The default analyzer works with <acronym>ASCII</acronym> text (since the
         The default analyzer works with <acronym>ASCII</acronym> text (since the
-        <acronym>UTF-8</acronym> analyzer needs the <classname>mbstring</classname> extension to be
+        <acronym>UTF-8</acronym> analyzer needs the <emphasis>mbstring</emphasis> extension to be
         turned on). It is case insensitive, and it skips numbers. Use other analyzers or create your
         turned on). It is case insensitive, and it skips numbers. Use other analyzers or create your
         own analyzer if you need to change this behavior.
         own analyzer if you need to change this behavior.
     </para>
     </para>
@@ -79,9 +79,9 @@
             <para>
             <para>
                 <emphasis>Not</emphasis> to use Lucene index as a storage since it may dramatically
                 <emphasis>Not</emphasis> to use Lucene index as a storage since it may dramatically
                 decrease search hit retrieving performance. Store only unique document identifiers
                 decrease search hit retrieving performance. Store only unique document identifiers
-                (doc paths, URLs, database unique IDs) and associated data within an index. E.g.
-                title, annotation, category, language info, avatar. (Note: a field may be included
-                in indexing, but not stored, or stored, but not indexed).
+                (doc paths, <acronym>URL</acronym>s, database unique IDs) and associated data within
+                an index. E.g. title, annotation, category, language info, avatar. (Note: a field
+                may be included in indexing, but not stored, or stored, but not indexed).
             </para>
             </para>
         </listitem>
         </listitem>
 
 

+ 6 - 6
documentation/manual/en/tutorials/lucene-queries.xml

@@ -102,8 +102,8 @@ title:"The Right Way" AND text:go
 ]]></programlisting>
 ]]></programlisting>
 
 
         <para>
         <para>
-            Searches for the phrase "The Right Way" within the <varname>title</varname> field and
-            the word "go" within the <varname>text</varname> field.
+            Searches for the phrase "The Right Way" within the <property>title</property> field and
+            the word "go" within the <property>text</property> field.
         </para>
         </para>
     </example>
     </example>
 
 
@@ -115,7 +115,7 @@ title:"The Right Way" AND  go
 ]]></programlisting>
 ]]></programlisting>
 
 
         <para>
         <para>
-            Searches for the phrase "The Right Way" within the <varname>title</varname> field and
+            Searches for the phrase "The Right Way" within the <property>title</property> field and
             the word "go" word appearing in any field of the document.
             the word "go" word appearing in any field of the document.
         </para>
         </para>
     </example>
     </example>
@@ -128,9 +128,9 @@ title:Do it right
 ]]></programlisting>
 ]]></programlisting>
 
 
         <para>
         <para>
-            Searches for the word "Do" within the <varname>title</varname> field and the words "it"
-            and "right" words through all fields; any single one matching will result in a document
-            match.
+            Searches for the word "Do" within the <property>title</property> field and the words
+            "it" and "right" words through all fields; any single one matching will result in
+            a document match.
         </para>
         </para>
     </example>
     </example>
 
 

+ 12 - 11
documentation/manual/en/tutorials/lucene-searching.xml

@@ -14,19 +14,20 @@
 $hits = $index->find($query);
 $hits = $index->find($query);
 
 
 foreach ($hits as $hit) {
 foreach ($hits as $hit) {
-    printf(“%d %f %s\n”, $hit->id, $hit->score, $hit->title);
+    printf("%d %f %s\n", $hit->id, $hit->score, $hit->title);
 }
 }
 ]]></programlisting>
 ]]></programlisting>
     </example>
     </example>
 
 
     <para>
     <para>
         This example demonstrates the usage of two special search hit properties -
         This example demonstrates the usage of two special search hit properties -
-        <varname>id</varname> and <varname>score</varname>.
+        <property>id</property> and <property>score</property>.
     </para>
     </para>
 
 
     <para>
     <para>
-        <varname>id</varname> is an internal document identifier used within a Lucene index. It may
-        be used for a variety of operations, including deleting a document from the index:
+        <property>id</property> is an internal document identifier used within a Lucene index.
+        It may be used for a variety of operations, including deleting a document from the
+        index:
     </para>
     </para>
 
 
     <example id="learning.lucene.searching.delete-example">
     <example id="learning.lucene.searching.delete-example">
@@ -61,7 +62,7 @@ $doc = $index->getDocument($id);
     </note>
     </note>
 
 
     <para>
     <para>
-        The <varname>score</varname> field is a hit score. Search results are ordered by score by
+        The <property>score</property> field is a hit score. Search results are ordered by score by
         default (best results returned first).
         default (best results returned first).
     </para>
     </para>
 
 
@@ -74,15 +75,15 @@ $doc = $index->getDocument($id);
 
 
     <para>
     <para>
         The example also demonstrates an ability to access stored fields (e.g.,
         The example also demonstrates an ability to access stored fields (e.g.,
-        <code>$hit-&gt;title</code>).  At the first access to any hit property other than
-        <varname>id</varname> or <varname>score</varname>, document stored fields are loaded, and
-        the corresponding field value is returned.
+        <command>$hit->title</command>). At the first access to any hit property other than
+        <property>id</property> or <property>score</property>, document stored fields are loaded,
+        and the corresponding field value is returned.
     </para>
     </para>
 
 
     <para>
     <para>
-        This causes an ambiguity for documents having their own <varname>id</varname> or
-        <varname>score</varname> fields; as a result, it's not recommended to use these field names
-        within stored documents. Nevertheless, they still can be accessed via the
+        This causes an ambiguity for documents having their own <property>id</property> or
+        <property>score</property> fields; as a result, it's not recommended to use these field
+        names within stored documents. Nevertheless, they still can be accessed via the
         <methodname>getDocument()</methodname> method:
         <methodname>getDocument()</methodname> method:
     </para>
     </para>