Hi,
in my person model,
I have a enumeration field “role” that take bits like 1, 2, 4, 8, 16,
…
they represent person roles(eg: admin(1), QA(2), manager(4) … ).
Each person can take on multiple roles.
say there’s person A that’s both a admin and QA(the role value is “3”)
so if I search like “Person.find_by_content('role:(1))”, I expect it to
return person A. but this clearlly doesn’t work.
Does Ferret support this kind of search?
or do I have to build in inverted index as mentioned at
http://www.mail-archive.com/[email protected]/msg00372.html
Thanks.
Yaxm