Hello, 
this is my first message to te general list.
I have a problem to make it work a code I wrote with the zf 1.7.0 to do search:


$request = $this->getRequest();
$params = $request->getParams();
$c = isset($params['c']) ? $params['c'] : '';

$term  = new Zend_Search_Lucene_Index_Term('*'.$c.'*','categories_url');
$query = new Zend_Search_Lucene_Search_Query_Wildcard($term);

$results = $index->find($query,'dateCreated',SORT_REGULAR,SORT_DESC);


With zf 1.7.7 and 1.7.8 I get an exception:

exception 'Zend_Search_Lucene_Exception' with message 'At least 3 non-wildcard 
terms are required.'


I've read the documentation 
http://framework.zend.com/manual/en/zend.search.lucene.query-api.html but I 
were unable to find 
where is specified about the 3 non-wildcard terms required.

I appreciate any suggestione.
Thanks.


Sergio Rinaudo



_________________________________________________________________
Quante ne sai? Scoprilo con CrossWire!
http://clk.atdmt.com/GBL/go/140630367/direct/01/

Reply via email to