Re: Negative query issue

2012-09-08 Thread Ramprakash Ramamoorthy
This query *-HOSTNAME:ram AND SEVERITY:information *gets translated as * +(-HOSTNAME:ram)+(SEVERITY:information)*. I get the intended results when I remove the first plus in the above statement, ie * (-HOSTNAME:ram)+(SEVERITY:information)* Thanks Ian and Erick. I am getting a couple of ideas from

Re: Negative query issue

2012-09-07 Thread Erick Erickson
The first thing you should do is enumerate what you expect and what you get. We have no way of knowing what expectations of yours are not being met. Here's an interesting blog you might want to read: http://searchhub.org/dev/2011/12/28/why-not-and-or-and-not/ Best Erick On Wed, Sep 5, 2012 at 8:

Re: Negative query issue

2012-09-07 Thread Ian Lea
http://wiki.apache.org/lucene-java/LuceneFAQ#Why_am_I_getting_no_hits_.2BAC8_incorrect_hits.3F -- Ian. On Wed, Sep 5, 2012 at 4:24 PM, Ramprakash Ramamoorthy wrote: > Take a look at this query : > > -HOSTNAME:ram AND SEVERITY:information > > The above query isn't giving me the intended results