Complex search-engine like query support for activerecord