Issue Type: Bug Created: 2009-07-26T11:34:09.000+0000 Last Updated: 2012-11-20T20:52:44.000+0000 Status: Closed Fix version(s): Reporter: Andrey Kulikov (andkul) Assignee: None Tags: - Zend_Search_Lucene
Related issues: - ZF-7738
In manual i read this:
Phrases can also contain gaps or terms in the same places; they can be generated by the analyzer for different purposes. For example, a term can be duplicated to increase the term its weight, or several synonyms can be placed into a single position.
But when i do this:
$query = new Zend_Search_Lucene_Search_Query_Phrase(); $query->addTerm(new Zend_Search_Lucene_Index_Term('word1'), 0); $query->addTerm(new Zend_Search_Lucene_Index_Term('word2synonyms'), 0); $hits = $index->find($query);
Result is zero.
Posted by Corvus Corax (corvuscorax) on 2009-09-02T09:21:02.000+0000
I stumbled over this, too when doing ZF-7738.
That patch also changes Zend_Search_Lucene_Search_Query_Phrase to handle multiple alternatives for a single position.
Gaps in a phrase were already supported AFAIK, so that should be no problem.
If ZF-7738 gets incorporated, this bug should be fixed, too.
Posted by Rob Allen (rob) on 2012-11-20T20:52:44.000+0000
Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".
Feel free to re-open and provide a patch if you want to fix this issue.
Have you found an issue?
See the Overview section for more details.