lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramprakash Ramamoorthy <youngestachie...@gmail.com>
Subject Re: Negative query issue
Date Sat, 08 Sep 2012 11:13:42 GMT
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 your links and
planning a workaround. Will update this thread once I am done.

On Fri, Sep 7, 2012 at 8:36 PM, Erick Erickson <erickerickson@gmail.com>wrote:

> 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:24 AM, Ramprakash Ramamoorthy
> <youngestachiever@gmail.com> wrote:
> > Take a look at this query :
> >
> > -HOSTNAME:ram AND SEVERITY:information
> >
> > The above query isn't giving me the intended results. I know we need to
> > append a * : * to a query that it is totally negative, also I found that
> > the above case could be solved by appending a * : * to the HOSTNAME
> search
> > criteria, but it might be a serious performance crunch, since my
> > application gets search queries from the end user directly.
> >
> > How do I go about this and help me arrive at an optimal solution please!
> > P.S : Have posted this query at stackoverflow as well
> >
> > --
> > With Thanks and Regards,
> > Ramprakash Ramamoorthy,
> > Engineer Trainee,
> > Zoho Corporation.
> > +91 9626975420
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
With Thanks and Regards,
Ramprakash Ramamoorthy,
Engineer Trainee,
Zoho Corporation.
+91 9626975420

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message