Boolean NOT is not working with Date Range Query in Lucene.net v3.0.3.0 -


i using lucene.net v3.0.3.0 indexing , searching, have "createdatetime" field store document creation datetime.i create datetime range query boolean "not" condition. means retrieve documents createdate should not in range have given, able create query query not returning results.

date mmddyyyyhhmmss format.

my date range 7/15/2014 12:00:00 3/31/2015 11:59:59 pm

my final query follows,

-createdatetime:[20140715000000000 20150331235959000]

i had tried same query of luke tool not returning result. indexing created , able fire types of quires on except daterange query not boolean condition. not working fine on other fields.

any suggestions ?

is query in search request? can't provide negative query, need matching queries too. add matchalldocsquery booleanquery, result should end *:* -createdatetime:[...]


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -