DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=33076>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33076 Summary: Use of non boolean AND at begining of search term causes error Product: Lucene Version: 1.4 Platform: PC OS/Version: Windows XP Status: NEW Severity: major Priority: P2 Component: QueryParser AssignedTo: lucene-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] It appears that the query parser is treating words that start with "and" as boolean modifiers. I have a simple search query which does a simple OR against two terms. If the second term is a word that begins with "and", the query parser reports an erorr with the query. For example: bob or andrew as a search string will result in the error: Encountered "AND" at line 1 There is a workaround where you wrap each term in quotation marks: "bob" or "andrew" This appears to comfort the query parser, however it still seems like a bug to me. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]