RE: Lucene 2.2.0 Strange QueryParser behavior

2008-10-27 Thread Bob Rhodes
] Sent: Monday, October 27, 2008 10:43 AM To: java-user@lucene.apache.org Subject: Re: Lucene 2.2.0 Strange QueryParser behavior OR is both a stopword and a reserved word In this case you *probably* are getting hit by it being a stopword. Changing your analyzer to not use stopwords is probably

Re: Lucene 2.2.0 Strange QueryParser behavior

2008-10-27 Thread Erick Erickson
OR is both a stopword and a reserved word In this case you *probably* are getting hit by it being a stopword. Changing your analyzer to not use stopwords is probably the way to go, but beware that you should probably use the same analyzer at index AND query time. If you're using StandardAnalyz