lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markharw00d <markharw...@yahoo.co.uk>
Subject Re: Any existing query types that support equivalent of "-not interested" ?
Date Fri, 30 Jun 2006 23:10:10 GMT

>Maybe this:
>
>SpanNotQuery(interested, SpanNearQuery(not,interested))
>
>with a SpanTermQuery for each term?
>  
>

Thanks, Paul. This is working well for me and I can happily use multiple 
SpanTermQueries embedded in a SpanOrQuery in place of each of the single 
words in your example.

SpanNotQuery(
	SpanOrQuery(interested,curious...) 
	SpanNearQuery(
		SpanOrQuery(not,wasnt,isnt,...)
		SpanOrQuery(interested,curious...)
		)
	)




	
	
		
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC
Magazine 
http://uk.docs.yahoo.com/nowyoucan.html

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