Class: Fiona7::SearchEngine

Inherits:
Object
  • Object
show all
Defined in:
lib/fiona7/search_engine.rb

Direct Known Subclasses

NaiveSearchEngine, VeritySearchEngine

Instance Method Summary collapse

Constructor Details

#initialize(klass, query, offset, limit, sort, order) ⇒ SearchEngine

Returns a new instance of SearchEngine.



3
4
5
6
7
8
9
10
# File 'lib/fiona7/search_engine.rb', line 3

def initialize(klass, query, offset, limit, sort, order)
  @klass = klass
  @query = query
  @offset, @limit = offset, limit
  @sort, @order = sort, order

  @count = 0
end

Instance Method Details

#objectsObject



20
21
22
# File 'lib/fiona7/search_engine.rb', line 20

def objects
  raise "Not implemented"
end

#resultsObject



16
17
18
# File 'lib/fiona7/search_engine.rb', line 16

def results
  raise "Not implemented"
end

#totalObject



12
13
14
# File 'lib/fiona7/search_engine.rb', line 12

def total
  @count
end