Zend Lucene - cannot search numbers

Posted by Pavel Dubinin on Stack Overflow See other posts from Stack Overflow or by Pavel Dubinin
Published on 2010-05-16T08:13:28Z Indexed on 2010/05/16 8:20 UTC
Read the original article Hit count: 402

Filed under:
|
|

Using Zend Lucene I cannot search numbers in description fields

Added it like this:

$doc->addField(Zend_Search_Lucene_Field::Text('description', $current_item['item_short_description'], 'utf-8'));

Googling for this showed that applying following code should solve the problem, but it did not..:

Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_TextNum_CaseInsensitive());

any thougts?

© Stack Overflow or respective owner

Related posts about zend

Related posts about lucene