Am I right that you are only interested in results / facets for
current season? If it's so then you can index start/end dates as a
separate number fields and build your search filters like this
"fq=+start_date_month:[* TO 6] +start_date_day:[* TO 17]
+end_date_month:[* TO 6] +end_date_day:[16 TO *]" where 6/16 is
current month/day.

On Thu, Jun 16, 2011 at 5:20 PM, roySolr <royrutten1...@gmail.com> wrote:
> Hello,
>
> First i will try to explain the situation:
>
> I have some companies with openinghours. Some companies has multiple seasons
> with different openinghours. I wil show some example data :
>
> Companyid          Startdate(d-m)  Enddate(d-m)     Openinghours_end
> 1                        01-01                01-04                 17:00
> 1                        01-04                01-08                 18:00
> 1                        01-08                31-12                 17:30
>
> 2                        01-01                31-12                 20:00
>
> 3                        01-01                01-06                 17:00
> 3                        01-06                31-12                 18:00
>
> What i want is some facets on the left site of my page. They have to look
> like this:
>
> Closing today on:
> 17:00(23)
> 18:00(2)
> 20:00(1)
>
> So i need to get the NOW to know which openinghours(seasons) i need in my
> facet results. How should my index look like?
> Can anybody helps me how i can save this data in the solr index?
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Complex-situation-tp3071936p3071936.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to