I have a search that finds events occuring within a few days either
side of a reference event, but can't seem to exclude the original
event from the results.
For example, Joe is having a BBQ on the 13th April, and I want to
fetch a list of other people's BBQs that same week, except for Joe's
on the 13th.
So far I have
@other_bbqs = Event.search :with => { :date => (@event.date -
3).to_time.to_i..(@event.date + 3).to_time.to_i}
adding "event_id => [email protected]" doesn't do the trick but that is my
general intent, so could someone please enlighten me as to the proper
syntax?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---