tanker icon indicating copy to clipboard operation
tanker copied to clipboard

How do i define multiple values for category, and then search for it?

Open USvER opened this issue 10 years ago • 1 comments

I have defined category like this:

    category :type do
      tags.select{|tag| tag.tag_category_id==4 }.map(&:name)
    end

I'm returning array of tags from particular category as "type" category. But how do i search by tags?

USvER avatar Apr 12 '14 18:04 USvER

This does not work:

Model.search_tank(conditions: {category_filters: {type:['New', 'Good']}})

And as per documentation on categories, it will use logical OR for same category... Is there pssibility to use AND logic?

So i want to index by tags, and then search for multiple tags with logical AND...

USvER avatar Apr 12 '14 18:04 USvER