lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: Any existing query types that support equivalent of "-not interested" ?
Date Fri, 30 Jun 2006 17:22:02 GMT
On Friday 30 June 2006 19:09, markharw00d wrote:
> Erik Hatcher wrote:
> 
> > wouldn't this work?   +interested -"not interested"
> 
> Hi Erik.
> Yes, sorry brain is disengaged with all the heat here -  my example 
> wasn't great and my scenario may be more complex than I originally 
> outlined. I may have 20 different ways of saying "interested" and want 
> to query for these words - but only if they aren't immediately preceded 
> by "not", "isn't" or a choice of other negatives. I was looking for 
> something efficient and succint in SpanQuerys to help.

Maybe this:

SpanNotQuery(interested, SpanNearQuery(not,interested))

with a SpanTermQuery for each term?

Regards,
Paul Elschot

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message