Module: Sequel::Plugins::TextSearchable::DatasetMethods

Defined in:
lib/sequel/plugins/text_searchable.rb

Instance Method Summary collapse

Instance Method Details

#text_search(q, opts = {}) ⇒ Object



31
32
33
34
# File 'lib/sequel/plugins/text_searchable.rb', line 31

def text_search(q, opts={})
  full_opts = self.model.text_search_options.merge(tsvector: true).merge(opts)
  return self.full_text_search(self.model.text_search_column, q, **full_opts)
end