Hi,
Running 701, cannot update to a newer build at the moment.
I have an index that produces a projection that has a lot of properties among which there are some date/time properties:
"LastMessageDeliveredAt": "2012-04-10T08:42:27.8296290+00:00"
(in json seen from the studio)
Now, issuing this query (from the studio):
LastMessageDeliveredAt: [20100201 TO 20120201]
Does _not_ filter out the document that has the above value, if I issue this query
LastMessageDeliveredAt: [20100201 TO 20110201]
Changing the year from 2012 to 2011 documents are correctly filtered.
Any idea?
.m
If I change the Lucene query to this:
LastMessageDeliveredAt: [2010-02-01 TO 2012-02-01]
It works as expected, now running the same using Linq:
var limit = DateTimeOffset.Now.AddMonths( -2 ).Date;
mailboxSession.Query<BlaBla, BlaBla>().Where( c => c.LastMessageDeliveredAt <= limit )
does not work, how can I see which Lucene query gets produced?
.m
Amazing, that did the trick, I did not know.
What should be the value? Analyzed or Default?