lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jasneet Sabharwal <>
Subject Facet Count Based on Dates
Date Tue, 10 May 2011 08:36:21 GMT
I have a schema which has field Polarity which is of type "text" and it 
can have three values 0,1 or -1 and CreatedAt which is of type "date".

*How can I get count of polarity based on dates. For example, it gives 
the output that on 5/1/2011 there were 10 counts of 0, 10 counts of 1 
and 10 counts of -1

If I use the facet query like this :-


Then I get the count of the complete database


The query : 


Would give me the count of data per day, like this:


How will I be able to get the Polarity count for each date like:-

         0 = 100
         1 = 500
         -1 = 200

Thanks&  Regards

Jasneet Sabharwal

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