lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Delsey Sherrill <>
Subject Date faceting problem
Date Tue, 04 Sep 2007 22:01:02 GMT

This is my first post to the list, having done my FAQ/wiki/archive due diligence to no avail.

I'm having an issue w/ the date faceter, running solr 1.2.0 on Tomcat populated with the example

data.  When I make a date facet request (example copied verbatim from the SimpleFacetParameter

wikipage), I don't see any date facets in my response.

Here is the response I am getting:

   <lst name="responseHeader">
     <int name="status">0</int>
     <int name="QTime">0</int>
     <lst name="params">
       <str name="">timestamp</str>
       <str name="">NOW/DAY+1DAY</str>
       <str name="">+1DAY</str>
       <str name="rows">0</str>
       <str name="facet">true</str>
       <str name="">NOW/DAY-5DAYS</str>
       <str name="indent">true</str>
       <str name="q">*:*</str>
   <result name="response" numFound="26" start="0"/>
   <lst name="facet_counts">
     <lst name="facet_queries"/>
     <lst name="facet_fields"/>

What's missing is the facet_dates tag, something like this...

   <lst name="facet_counts">
     <lst name="facet_dates">
      <lst name="timestamp">
         <int name="2007-08-11T00:00:00.000Z">1</int>
         <int name="2007-08-12T00:00:00.000Z">5</int>
         <int name="2007-08-13T00:00:00.000Z">3</int>
         <int name="2007-08-14T00:00:00.000Z">7</int>
         <int name="2007-08-15T00:00:00.000Z">2</int>
         <int name="2007-08-16T00:00:00.000Z">16</int>
         <str name="gap">+1DAY</str>
         <date name="end">2007-08-17T00:00:00Z</date>

Thinking that perhaps this was due to the fact that my docs are > 5 days old, I tried again
w/, but still the same result.

I'd appreciate if anyone could shed some light on this, or at least offer some suggestions


View raw message