If you give the find() method a search query like "{alpha to bravo}" it
reports "Range queries not supported yet" which seems like a normal error. 
But if the user legitimately searches for a phrase like "out to lunch",
find() throws this exception:

Zend_Search_Lucene_Search_QueryParserException Object
(
    [message:protected] => Syntax error at char position 5.
    [string:private] => 
    [code:protected] => 0
    [file:protected] =>
/home/neby/php5/Zend/Search/Lucene/Search/QueryParser.php
    [line:protected] => 353
........
)

Perhaps someone can tell me whether to file a Jira issue on this.  I
searched but wasn't finding an open issue that seemed to be related - but I
know how great it is when someone submits bug reports on something that's
already been reported/worked.  If I don't see any feedback on the list in a
few days I'll file an issue report.
-- 
View this message in context: 
http://www.nabble.com/Zend_Search_Lucene-syntax-error-exception-when-searching-on-%22to%22-tf4349915s16154.html#a12394266
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to