lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33076] New: - Use of non boolean AND at begining of search term causes error
Date Thu, 13 Jan 2005 05:14:24 GMT
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: jason.polites@gmail.com


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: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message