lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Any existing query types that support equivalent of "-not interested" ?
Date Fri, 30 Jun 2006 15:55:41 GMT
wouldn't this work?   +interested -"not interested"


On Jun 30, 2006, at 11:47 AM, mark harwood wrote:

> As an example - I want to search for the word "interested" without  
> finding docs that have "not" immediately preceding it.
>
> I couldn't see anything in SpanQuerys that would help and you can't  
> construct phrase queries like "-not interested".
>
> If something doesn't exist I'll probably look into writing a new  
> Query class of some sort to support this using the position info in  
> the index but I thought I'd check here for ideas first.
>
> Cheers
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
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