tanker
tanker copied to clipboard
How do i define multiple values for category, and then search for it?
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?
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...