I have some trouble defining a query with Tire.
What I have:
My documents are events. They have a starts_at date, and a ends_at date.
The ends_at date is not required.
What I want:
I want to display upcoming events (for instance). I would define upcoming as the following:
ends_atdate is present AND after Time.now
OR
ends_atdate is not present, ANDstarts_atis after Time.now
Right now I’m just doing
query do
boolean do
must { range :starts_at, { gte: bod } }
end
end
How can I this OR query?
the only way I can think of right now is to use
_missing_and_exists_in the string query: