Hey there,

1.- I am trying to use date facets but I am facing a trouble. I want to use
the same field to do 2 facet classification. I want to show the count of the
docs of the last week and the counts od the docs of the last month.
What I am doing is:

<!-- Docs indexed last week -->
      <str name="facet.date">source_date</str>
      <str name="facet.date.start">NOW/DAY-1MONTH</str>
      <str name="facet.date.end">NOW/DAY</str>
      <str name="facet.date.gap">+1MONTH</str>

<!-- Docs inserted last month -->
      <str name="facet.date">source_date</str>
      <str name="facet.date.start">NOW/DAY-7DAY</str>
      <str name="facet.date.end">NOW/DAY</str>
      <str name="facet.date.gap">+7DAY</str>

What i am getting as result is 2 facect result that are exactly the same
(the result is just the first facet showed two times)

<lst name="facet_dates">
<lst name="source_date">
<int name="2008-12-10T00:00:00Z">45</int>
<str name="gap">+1MONTH</str>
<date name="end">2008-12-17T00:00:00Z</date>
</lst>
<lst name="source_date">
<int name="2008-12-10T00:00:00Z">45</int>
<str name="gap">+1MONTH</str>
<date name="end">2008-12-17T00:00:00Z</date>
</lst>
</lst>

I supose I am doing somenthing wrong in the sintax... any advice?
Thanks in advance

-- 
View this message in context: 
http://www.nabble.com/date-facets-doubt-tp21050107p21050107.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to