Class: DataMapper::Repository
- Inherits:
-
Object
- Object
- DataMapper::Repository
- Defined in:
- lib/ferret_adapter/repository_ext.rb
Instance Method Summary collapse
-
#search(query, limit = :all) ⇒ Object
This accepts a ferret query string and an optional limit argument which defaults to all.
Instance Method Details
#search(query, limit = :all) ⇒ Object
This accepts a ferret query string and an optional limit argument which defaults to all. This is the proper way to perform searches more complicated than DM’s query syntax can handle (such as OR searches).
See DataMapper::Adapters::FerretAdapter#search for information on the return value.
9 10 11 |
# File 'lib/ferret_adapter/repository_ext.rb', line 9 def search(query, limit = :all) adapter.search(query, limit) end |