Method: Contentstack::Query#search
- Defined in:
- lib/contentstack/query.rb
#search(text) ⇒ Contentstack::Query
Deprecated.
since version 0.5.0
This method provides only the entries matching the specified value. Example
@query = @stack.content_type('product').query
@query.search("This is an awesome product")
308 309 310 311 |
# File 'lib/contentstack/query.rb', line 308 def search(text) @query[:typeahead] = text self end |