Class: Elasticated::Repository::Search
- Inherits:
-
Object
- Object
- Elasticated::Repository::Search
- Defined in:
- lib/elasticated/repository/search.rb
Direct Known Subclasses
IntelligentSearch, NormalSearch, ResumableSearch, ScanScrollSearch, ScrollSearch, SinglePageSearch
Instance Attribute Summary collapse
-
#aggregated ⇒ Object
abstract class child must implement ‘execute()’.
-
#opts ⇒ Object
abstract class child must implement ‘execute()’.
-
#query ⇒ Object
abstract class child must implement ‘execute()’.
-
#repository ⇒ Object
abstract class child must implement ‘execute()’.
Instance Method Summary collapse
-
#initialize(repository, query, aggregated = false, opts = {}) ⇒ Search
constructor
A new instance of Search.
Constructor Details
#initialize(repository, query, aggregated = false, opts = {}) ⇒ Search
Returns a new instance of Search.
10 11 12 13 14 15 |
# File 'lib/elasticated/repository/search.rb', line 10 def initialize(repository, query, aggregated=false, opts={}) self.repository = repository self.query = query self.aggregated = aggregated self.opts = opts end |
Instance Attribute Details
#aggregated ⇒ Object
abstract class child must implement ‘execute()’
8 9 10 |
# File 'lib/elasticated/repository/search.rb', line 8 def aggregated @aggregated end |
#opts ⇒ Object
abstract class child must implement ‘execute()’
8 9 10 |
# File 'lib/elasticated/repository/search.rb', line 8 def opts @opts end |
#query ⇒ Object
abstract class child must implement ‘execute()’
8 9 10 |
# File 'lib/elasticated/repository/search.rb', line 8 def query @query end |
#repository ⇒ Object
abstract class child must implement ‘execute()’
8 9 10 |
# File 'lib/elasticated/repository/search.rb', line 8 def repository @repository end |