I use Sunspot to search for events (parties, concerts, ...) in the Ruby on Rails 3 application.
I managed to set up free text search and aspect search for several types of categories.
Now I am stuck in my next task. I want to customize the faces associated with when the event occurs.
I want to have faces that describe both relative date / time ranges , such as βtoday,β βthis weekend,β βnext weekend,β and absolute date and time ranges , such as βEaster Holiday 2011,β βNew Year 2012β , ... Date-time ranges sometimes overlap.
I looked at the Sunspot API documentation, the Sunspot wiki, read and downloaded articles and blogs here on Stackoverflow. People write what can be achieved, but I do not find examples or ideas of implementation that make me understand how to do this.
Any suggestions?
Since my problem is not in my code, I am not posting any code. The Event class has an instance of DateTime named "start_time". I understand that my task is to determine when the absolute date / time ranges appear on the calendar.
Yours faithfully,
./Stefana
PS I said I'm a newbie? ;-) DS
source share