I'm still working to get the hang of Lucene and am not sure how to structure this query.
I'm trying to delete all items older than a certain date. It seems I have to do a range query, yes? What format do I use for the dates?
_Session.Advanced.DatabaseCommands.DeleteByIndex(
typeof(AssetsByExpirationDate).Name,
new IndexQuery()
{
Query = string.Format("ExpirationDate:[\"{0:MM/dd/yyyy}\" TO \"{1:MM/dd/yyyy}\"]", DateTime.MinValue, new DateTime(2012,6,1))
});
Any guidance on this topic would be appreciated.