Monday, February 21, 2011

Zend Framework - Search Lucene for exact phrase

Hi ,

is there any way to Query the Index of Zend_Search_Lucene for an exact match ?

$keyword = 'Summer 2009';

when i use :

$myIndex->find($keyword)

i am also receiving "Summer , 2009, Summer 2009" ?

From stackoverflow
  • Querying for a double-quoted string ought to do it:

    $keyword = '"Summer 2009"';
    
    ArneRie : Hi wont work, no results (;

0 comments:

Post a Comment