class Documentation::Searchers::Sunspot

Public Instance Methods

delete(page) click to toggle source
# File lib/documentation/searchers/sunspot.rb, line 21
def delete(page)
  ::Sunspot.remove(page)
end
index(page) click to toggle source
# File lib/documentation/searchers/sunspot.rb, line 17
def index(page)
  ::Sunspot.index(page)
end
reset() click to toggle source
# File lib/documentation/searchers/sunspot.rb, line 25
def reset
  ::Sunspot.remove_all(Documentation::Page)
end
setup() click to toggle source
# File lib/documentation/searchers/sunspot.rb, line 5
def setup
  ::Sunspot.setup(Documentation::Page) do
    text :title, :boost => 2.0
    text :content, :stored => true
    string :title, :stored => true
    string :permalink
    string :full_permalink
    time :created_at
    time :updated_at
  end
end