Skip to content
This repository was archived by the owner on Nov 22, 2017. It is now read-only.
This repository was archived by the owner on Nov 22, 2017. It is now read-only.

Trying to facet date #175

Description

@temesoft

Hello.

I am trying to get faceted results for a given query using facet date with gap of 1 day and also using date as a string facet field.
This is the result i get back:

<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">442</int>
<lst name="params">
<str name="facet.date.start">2012-01-01T00:00:00.000Z</str>
<str name="facet">true</str>
<str name="echoParams">explicit</str>
<str name="q">*:*</str>
<str name="facet.date">date</str>
<str name="facet.date.gap">+1DAY</str>
<arr name="facet.field">
<str>date</str>
<str>scan</str>
</arr>
<str name="facet.date.end">2012-07-01T00:00:00.000Z</str>
<str name="rows">0</str>
</lst>
</lst>
<result name="response" numFound="18" start="0"/>
<lst name="facet_counts">
<lst name="facet_queries"/>
<lst name="facet_fields">
<lst name="date">
<int name="2012-06-11T23:44:16.164Z">1</int>
<int name="2012-06-11T23:47:57.442Z">1</int>
<int name="2012-06-13T23:10:18.938Z">1</int>
<int name="2012-06-13T23:10:38.106Z">1</int>
<int name="2012-06-13T23:10:54.24Z">1</int>
<int name="2012-06-13T23:11:41.155Z">1</int>
<int name="2012-06-13T23:12:29.947Z">1</int>
<int name="2012-06-16T15:31:24.307Z">1</int>
<int name="2012-06-25T15:51:10.243Z">1</int>
<int name="2012-06-25T22:40:50.414Z">1</int>
<int name="2012-06-26T19:51:13.286Z">1</int>
<int name="2012-06-29T01:15:48.714Z">1</int>
<int name="2012-07-08T23:52:01.067Z">1</int>
<int name="2012-07-09T20:30:50.056Z">1</int>
<int name="2012-07-10T18:45:40.657Z">1</int>
<int name="2012-07-10T18:46:31.474Z">1</int>
<int name="2012-07-16T01:18:08.111Z">1</int>
<int name="2012-07-16T01:19:25.378Z">1</int>
</lst>
<lst name="scan">
<int name="false">11</int>
<int name="true">7</int>
</lst>
</lst>
<lst name="facet_dates"/>
<lst name="facet_ranges"/>
</lst>
</response>

As you can see the facet_dates tag is empty but the date field is present in every document and indexed.
You can also see the params sent. Am i doing something wrong?

Thanks
-D

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions