Issue Type: Docs: Problem Created: 2007-05-13T13:24:56.000+0000 Last Updated: 2008-02-26T12:56:07.000+0000 Status: Resolved Fix version(s): - 1.0.0 RC1 (28/May/07)
Reporter: Shahar Evron (shahar) Assignee: Thomas Weidner (thomas) Tags: - Zend_Search_Lucene
Related issues: Attachments:
Section 220.127.116.11 in the manual provides the following sample code:
<pre class="highlight"> <?php $userQuery = Zend_Search_Lucene_Search_QueryParser::parse($queryStr); $pathTerm = new Zend_Search_Lucene_Index_Term('/data/doc_dir/' . $filename, 'path'); $pathQuery = new Zend_Search_Query_Term($pathTerm); $query = new Zend_Search_Query_Boolean(); $query->addSubquery($userQuery, true /* required */); $query->addSubquery($pathQuery, true /* required */); $hits = $index->find($query);
However, there is no such class as Zend_Search_Query_Term - this should be changed with Zend_Search_Lucene_Search_Query_Term
Posted by Bill Karwin (bkarwin) on 2007-05-15T12:14:40.000+0000
Assigning to Alexander.
Posted by Alexander Veremyev (alexander) on 2007-05-23T04:45:30.000+0000
Posted by Wojciech Naruniec (wojciech) on 2007-12-03T03:31:51.000+0000
Example is still buggy. There is an another mistake, in Zend_Search_Query_Boolean class name. Name of this class should be changed to Zend_Search_Lucene_Search_Query_Boolean .
Posted by Thomas Weidner (thomas) on 2008-02-08T15:53:37.000+0000
Fixed with SVN-7875
Have you found an issue?
See the Overview section for more details.