Преглед изворни кода

Corrected a small typo in a code sample for retrieving documents by unique identifier in the Best Practices section of the Zend_Search_Lucene chapter of the Reference Guide

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18687 44c647ce-9c0f-0410-b52a-842ac1e357ba
elazar пре 16 година
родитељ
комит
bfba48ee49
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      documentation/manual/en/module_specs/Zend_Search_Lucene-BestPractice.xml

+ 1 - 1
documentation/manual/en/module_specs/Zend_Search_Lucene-BestPractice.xml

@@ -282,7 +282,7 @@ foreach ($hits as $hit) {
 ...
 ...
 
 
 // Retrieving documents with find() method using the query API
 // Retrieving documents with find() method using the query API
-$term = new Zend_Search_Lucene_Index_Term($docId, idFieldName);
+$term = new Zend_Search_Lucene_Index_Term($docId, $idFieldName);
 $query = new Zend_Search_Lucene_Search_Query_Term($term);
 $query = new Zend_Search_Lucene_Search_Query_Term($term);
 $hits  = $index->find($query);
 $hits  = $index->find($query);
 foreach ($hits as $hit) {
 foreach ($hits as $hit) {