Not sure if there is a means of doing explicitly what you ask, but you could do a date range:
+mydate:[YYYY-MM-DD 0:0:0 TO YYYY-MM-DD 11:59:59] On Thu, Mar 3, 2011 at 9:14 AM, bbarani <bbar...@gmail.com> wrote: > Hi, > > Is there a way to omit hour-min-sec in SOLR date field during search? > > I have indexed a field using TrieDateField and seems like it uses UTC > format. The dates get stored as below, > > lastupdateddate">2008-02-26T20:40:30.94Z > > I want to do a search based on just YYYY-MM-DD and omit T20:40:30.94Z.. Not > sure if its feasible, just want to check if its possible. > > Also most of the data in our source doesnt have time information hence we > are very much interested in just storing the date without time or even if > its stored with some default timestamp we want to search just using date > without using the timestamp. > > Thanks, > Barani > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Omit-hour-min-sec-in-search-tp2625840p2625840.html > Sent from the Solr - User mailing list archive at Nabble.com. >