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.

  1. it extremely slow more or less large sets.
  2. i not have notion of indexes.
  3. it not have notion of stemming.

with rethinkdb driver documented here

run h $ table "table" # r.filter (\row -> match "some text" (row ! "field")) 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -