Ok, this is how I've done it.
Create an attribute index based on an SQL snippet (inside define_index
has "CASE WHEN run_time IS NULL THEN 0 WHEN run_time < 30 THEN 1 WHEN
Then just search by that attribute (i.e. Music.search :with =>
Hope it helps.
On Apr 6, 11:45 pm, Tiago Franco <gama.fra...@gmail.com> wrote:
> I'm having the same issue. Is there a workaround for this?
> On Mar 28, 6:18 am, Pat Allan <p...@freelancing-gods.com> wrote:
> > Hi Lucas
> > Unfortunately, the only way you can have OR behaviours in filters is searching across multi-value arrays (which are integers).Rangesdon't have this ability.
> > Sorry - good luck finding a solution that works around this limitation.
> > --
> > On 26/03/2010, at 10:00 PM, Sarniak wrote:
> > > Hi!
> > > (start_date >= date.today AND start_date <= date.today + 23.hours +
> > > I found usingrangesin shinx like:
> > > :start_date => 1.week.ago..Time.now
> > > And I could use it, but only for either first or second part of OR. Is
> > > Regards
> > > --
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.