Thursday 21 October 2010 10:51:13 am
"
Hello, Could you someone put an example ? This doesn't work : $search = $solrSearch->search( 'eZ*', $params=false ); Neither does this : $search = $solrSearch->search( 'eZ*', $param['Filter']=array('class/attribute:val*') ); Strange that fuzzy search or wildcard doesn't seem to exist on solr.
"
(note: your PHP code is not really what should be done) You can use wildcards, but for all common setups, the string supplied must be lower case as I mentioned in my previous reply to you. Another thing to look for: can you check also for your setup what is the default search handler in ezfind.ini? If it is set to heuristic, it will work, if not it wont and you must specify it as 'heuristic', 'standard' or 'simplestandard' :
$search = $solrSearch->search( 'ez*', array('Filter' => array('class/attribute:val*'), 'QueryHandler' => 'heuristic' )); also class/attribute must probably of type 'text' hth Paul
eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans
|