Date query not returning expected results #14840
nickchampion
started this conversation in
General
Replies: 2 comments 2 replies
-
Hi Can you please submit a sample app that demonstrate the issue, or a failing unit test: https://ravendb.net/docs/article-page/5.4/csharp/start/test-driver#getting-started-writing-your-unit-test-using-testdriver |
Beta Was this translation helpful? Give feedback.
0 replies
-
Something to note, you have |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a JavaScript index which indexes a date field stored as an ISO date / time string, the value stored for the document in question is
"moveAtUTC": "2022-09-30T10:00:00.000Z"
I can see this value in the terms for the index field and can query without a date filter and return the document, however when I issue this query, nothing is returned
from index 'Movements' where organisationId = "organisations/131-A" and moveAtUTC < "2022-09-30T23:59:59.999Z"
If I change the query and add 1 day I get the doc returned in the results
from index 'Movements' where organisationId = "organisations/131-A" and moveAtUTC < "2022-09-31T23:59:59.999Z"
What am I missing here, is there any conversion of the date field going on which could cause this query to fail?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions