Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search with in date range and NOT operator #76

Open
GoogleCodeExporter opened this issue Jul 29, 2015 · 0 comments
Open

search with in date range and NOT operator #76

GoogleCodeExporter opened this issue Jul 29, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Hi,

I am using Luke 4.0.0 for searching, I have "CreateDateTime" field which store 
document creation datetime.I would like to Create DateTime range query with 
boolean "NOT" condition. Means I would like to retrieve all those documents 
whose CreateDate should not be in the range which I have given, I am able to 
create query but the query is not returning any results.

Date is mmddyyyyhhmmss format.

my date range is 7/15/2014 12:00:00 AM To 3/31/2015 11:59:59 PM

My final query is as follows,

-CreateDateTime:[20140715000000000 TO 20150331235959000]

I had tried same query with the help of Luke tool as well it is also not 
returning any result. The indexing was created normally and I am able to fire 
all types of quires on it except DateRange query with NOT Boolean condition. 
NOT is working perfectly fine on other fields.

Any Suggestions ?

Original issue reported on code.google.com by [email protected] on 1 Apr 2015 at 5:56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant