Comments

johnv’s picture

Don't know anything about Search API, but the following issue is about Views filtering: #728026: Views Filter handler for Open/Closed (today/now/soon) [D7]

attheshow’s picture

I've confirmed this is an issue. If you are using Search API and go to the fields page of the default node index, there's no way to add your Office Hours field to be indexed by Solr.

johnv’s picture

This requires implementation of hook_entity_property_info().
maintainer is not familiar with that, so patches are welcome!

giorgio79’s picture

Issue summary: View changes

Looks like Solr 5 now has DateRange support out of the box that allows for efficient filtering for opening hours.
https://cwiki.apache.org/confluence/display/solr/Working+with+Dates

Although, DateRangeField may be an overkill for simple opening hours and this simple trick could be used too
https://wiki.apache.org/solr/SpatialForTimeDurations

I would be happy to chip in for integration, or if all else fails may have a go at it. :)

johnv’s picture

Component: User interface » Integration
johnv’s picture

Status: Active » Closed (outdated)

Given the life cycle of D7, this issue is considered closed. However, patches are appreciated.