I\'m trying to find all documents whose text contains the word test. The below works fine:
@tweets = Tweet.any_of({ :text => /.*test.*/ })
H
@tweets = Tweet.any_of({ :text => Regexp.new (".*"+searchterm+".*") })
is ok and have result