1. cloudengine
  2. cloudengine
  3. Issues
Issue #169 resolved

Wildcards in search gives an exception

Nick Freear
created an issue

Put " * " in the search box: * http://cloudworks.ac.uk/search/result

{{{ Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message 'At least 3 non-wildcard terms are required.' in /v... /application/libraries/Zend/Search/Lucene/Search/Query/Wildcard.php:146 Stack trace: #0 /v... /application/libraries/Zend/Search/Lucene/Search/Query/Boolean.php(145): Zend_Search_Lucene_Search_Query_Wildcard-&gt;rewrite(Object(Zend_Search_Lucene)) #1 /v... /application/libraries/Zend/Search/Lucene.php(912): Zend_Search_Lucene_Search_Query_Boolean-&gt;rewrite(Object(Zend_Search_Lucene)) #2 [internal function]: Zend_Search_Lucene-&gt;find(' jabberwocky') #3 /v... /application/libraries/Zend/Search/Lucene/Proxy.php(345): call_user_func_array(Array, Array) #4 /v... /application/models/search_model.php(147): Zend_Search_Lucene_Proxy-&gt;find(' jabberwocky') #5 /v... /application/controllers/search.php(41): Search_model-&gt;search(' jabberwocky') #6 [internal function]: Searc in <b>/v... /application/libraries/Zend/Search/Lucene/Search/Query/Wildcard.php</b> on line <b>146</b> }}} Conclusion: we need to catch exceptions from every Zend-Lucene call!

Comments (1)

  1. Log in to comment