lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mahesh Udupa" <>
Subject What is default Date time format in Solr
Date Fri, 07 Mar 2008 06:10:55 GMT
Hi all,

I heard Solr Date time format is 24 hours.
But I have following query regarding Search time.

In database I have a content with time as :- 2007-12-31 22:29:59

In oder to get this content I tried with following Range query:-

emf.artist:[2007-12-31T22:20:00Z TO  2007-12-31T22:39:00Z]

I am not able to get the content what I expected.

But, I tried with following query:-

emf.artist:[2007-12-31T10:20:00Z TO  2007-12-31T10:39:00Z]

It is perfectly working fine.

My Schema.xml content for Date field is like this :-

<fieldType name="date" class="solr.DateField" sortMissingLast="true"


 <!-- This is an example of using Date Math to specify a constantly
          moving date range in a config...
     <str name="bq">incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2</str>

Could you please let me know how can I search a content with 24 Hour format?

Looking forward hearing from u soon

Thanks in advance


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message