ZF-6156: $_minPrefixLength in Zend_Search_Lucene_Search_Query_Wildcard for ZF-3321breaks the search
the new $_minPrefixLength functionality added in to fix ZF-3321 may break many peoples searches with the default set to 3, I would think this should be changed to 0.
$searchIndex = Zend_Search_Lucene::open($config->datafiles->directory . 'search-index'); Zend_Search_Lucene::setDefaultSearchField('title'); $filter = new Zend_Filter_Word_SeparatorToSeparator(' ','* '); $searchCriteria = $filter->filter($searchCriteria); $query = Zend_Search_Lucene_Search_QueryParser::parse(''.$searchCriteria.'*'); $searchResults = $searchIndex->find($query, 'title', SORT_STRING);
after upgrading to 1.7.7 all my search returned was "At least 3 non-wildcard terms are required." regardless of what anyone was searching for.
I had to add the following in above the call to the QueryParser to fix this issue:
The lack of documentation for this new functionality certainly didn't help