Hello, 
hope anybody could help with the Search Lucene component.
This code:


$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);


works with zf 1.7.0 but NOT with zf 1.7.7 and 1.7.8, andI get this 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 suggestion.
Thanks.


Sergio Rinaudo



Il remix esclusivo di Messenger.  Scaricalo gratis!
_________________________________________________________________
Le più cercate della settimana?
http://clk.atdmt.com/GBL/go/140630368/direct/01/

Reply via email to