lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Puneet Pawaia <>
Subject Different results from combinations of SpanNear with SpanNot and Boolean
Date Sat, 24 Sep 2011 09:52:51 GMT
Hi All,

I find that the following 2 queries

State NEAR (biha* NOT bihar) which expands to base {Lucene.Net.Search.Query}
= {spanNear([contents:state, spanNot(SpanRegexQuery(contents:biha.*),
contents:bihar)], 10, False)}

(state NEAR biha*) NOT (state NEAR bihar) which expands to base
{Lucene.Net.Search.Query} = {+spanNear([contents:state,
SpanRegexQuery(contents:biha.*)], 10, False) -spanNear([contents:state,
contents:bihar], 10, False)}

I would have expected them to give the same results.

Any help in identifying what could be wrong ?


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