Method: Indexer.index

Defined in:
lib/picolena/templates/app/models/indexer.rb

.indexObject

Only one IndexWriter should be instantiated. If one index already exists, returns it. Creates it otherwise.



109
110
111
# File 'lib/picolena/templates/app/models/indexer.rb', line 109

def index
  @@index ||= Ferret::Index::Index.new(default_index_params)
end