zend framework - Facing issue when search using Zend_Lucene -


i using zend_lucene search functionality.i 've following code,

 $doc->addfield(zend_search_lucene_field::text('categoryname', $result->name));   

here name in "$result->name" varchar type in database. have following values dinesh,kumar123,3333. testing purpose have stored number in name field. when search dinesh , search comes exact result when use number search, 3333 search has no result. done wrong on code zend_search_lucene_field::text.

is there way search number/char/alphanumeric (kumar123) ?

thanks in advance

finally found declaring "zend_search_lucene_analysis_analyzer::setdefault(new zend_search_lucene_analysis_analyzer_common_textnum_caseinsensitive());" , use zend_search_lucene_field::keyword instead of zend_search_lucene_field::text


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -