Re: MultiFieldQueryParser and the NOT operator

2010-06-29 Thread Erick Erickson
Could you repost this on the users list? This is really the list for discussing internal development issues. You'll probably get better/faster answers there... [email protected] Best Erick On Mon, Jun 28, 2010 at 10:00 PM, Ivan Brusic wrote: > Thanks for the quick answer. > > The reg

Re: MultiFieldQueryParser and the NOT operator

2010-06-28 Thread Ivan Brusic
Thanks for the quick answer. The regex used to capitalize "not" was not setup properly if it appeared at the beginning. Fixed and the parsing issue is gone. Now the resulting query is something like: +(-(title:microsoft content:microsoft author.name:microsoft source.name:microsoft^0.5)) +date:[2

Re: MultiFieldQueryParser and the NOT operator

2010-06-28 Thread Erick Erickson
I'm pretty sure the "not" should be "NOT". All operators need to be all caps according to: http://lucene.apache.org/java/2_4_0/queryparsersyntax.html#Boolean operators Best Erick On Mon, Jun 28, 2010 at 10:54 AM, Ivan

MultiFieldQueryParser and the NOT operator

2010-06-28 Thread Ivan Brusic
I inherited some code that does a multi field search based on several form values. One field in particular is used by MultiFieldQueryParser. This field should be able to support a single "not" query. The result of the MultiFieldQueryParser is then appended with other clauses before a search is a