: In solr, I have two fields one is datetime [Admission_Date] and other
: string[Name]. I want to do datefaceting on multiple values in one solr
: query.
: 
: Suppose I have 3 records. name="test" ,"test1", "test3".
: 
: I want to do data-faceting on all three values in one solr query.

I'm sorry, but i'm not really understanding your question.

Cna you give a concrete example of all the fields & values each of your 
example documents would have, and what resulting facet counds you are 
trying to get? -- preferablly also include what types of requests you've 
tried and how those results differ from what you are trying to get.

I'm going to take a guess at what you might have ment..

If for example you had three documents, and these documents had multiple 
values in the Admission_Date field like this...

doc_id=test,  Admission_Date=[Oct12, Oct13, Oct16]
doc_id=test1, Admission_Date=[Oct13, Oct14]
doc_id=test3, Admission_Date=[Oct11, Oct14, Oct30]

Then using range faceting on the Admission_Date field like in the example 
link you mentioned...

facet.range=Admission_Date&facet.range.start=NOW/DAY-5DAYS&facet.range.end=NOW/DAY%2B1DAY&facet.range.gap=%2B1DAY

...you should get a constraint count for each of the dates that told you 
how many documents included that dated in their (multivalued) date field.  
somehting like...

   <int name="2012-10-11T00:00:00.000Z">1</int>
   <int name="2012-10-12T00:00:00.000Z">1</int>
   <int name="2012-10-13T00:00:00.000Z">2</int>
   <int name="2012-10-14T00:00:00.000Z">2</int>
   <int name="2012-10-15T00:00:00.000Z">0</int>
   <int name="2012-10-16T00:00:00.000Z">1</int>

Does that do what you are asking for?

-Hoss

Reply via email to