Class: Elasticated::Repository::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/elasticated/repository/search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#aggregatedObject

abstract class child must implement ‘execute()’



8
9
10
# File 'lib/elasticated/repository/search.rb', line 8

def aggregated
  @aggregated
end

#optsObject

abstract class child must implement ‘execute()’



8
9
10
# File 'lib/elasticated/repository/search.rb', line 8

def opts
  @opts
end

#queryObject

abstract class child must implement ‘execute()’



8
9
10
# File 'lib/elasticated/repository/search.rb', line 8

def query
  @query
end

#repositoryObject

abstract class child must implement ‘execute()’



8
9
10
# File 'lib/elasticated/repository/search.rb', line 8

def repository
  @repository
end