# This file has been generated by Picky.
#

# Require the gem. This loads the search framework.
#
require 'picky'

# Load your application. This requires the following files in
# 
#  * /lib/initializers/*.rb
#  * /lib/tokenizers/*.rb
#  * /lib/indexers/*.rb
#  * /lib/query/*.rb
#
#  * /app/logging.rb
#  * /app/application.rb
#
# to be required (in that order).
#
Loader.load_application

# Load the data. This loads data from cache files e.g. "some_index/*_index.dump" into constant Indexes::SomeIndex.
#
Indexes.load_from_cache

# Use Harakiri middleware to kill unicorn child after X requests.
#
# See http://vimeo.com/12614970 for more info.
#
# Note: Comment this.
#
    Rack::Harakiri.after = 50
use Rack::Harakiri

# Start the application and start accepting requests.
#
# Note: Needs to be the same name as in application.rb.
#
run PickySearch