RethinkDB text search? -
i trying study rethinkdb next project. backend in haskell , rethink db haskell driver looks bit better mongodb. want try it.
my question how do simple text search rethinkdb? nothing complex. find field value contains these words. assume should built in smallest blog app needs search facility of kind, right?.
so looking mongodb equivalent of:
var search = { "$text": { "$search": "some text" } };
thank you.
edit
i not looking regular expressions , match function.
- it extremely slow more or less large sets.
- i not have notion of indexes.
- it not have notion of stemming.
with rethinkdb driver documented here
run h $ table "table" # r.filter (\row -> match "some text" (row ! "field"))
Comments
Post a Comment