Jelajahi Sumber

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 tahun lalu
induk
melakukan
bfba48ee49

+ 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
-$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);
 $hits  = $index->find($query);
 foreach ($hits as $hit) {