HAYSTACK_SITECONF = 'transifex.search_indexes'

HAYSTACK_INCLUDE_SPELLING = True

# Index engine
HAYSTACK_SEARCH_ENGINE = 'simple'
#HAYSTACK_SEARCH_ENGINE = 'solr'

# Sorl specific
HAYSTACK_SOLR_URL = 'http://127.0.0.1:8983/solr'
HAYSTACK_SOLR_TIMEOUT = 30


################################################
# Some docs to enable django-haystack using solr

# FIXME: Move it to the docs repo

#Enable Sorl in Transifex
#------------------------

#cd /<tx_project_path>/transifex/

## Alter the engine in settings/55-haystack.conf
#HAYSTACK_SEARCH_ENGINE = 'solr'


#Installing Sorl
#---------------

## Downloading
#cd /opt/
#wget http://apache.mirrors.tds.net/lucene/solr/1.4.1/apache-solr-1.4.1.tgz
#tar -xzvf apache-solr-1.4.1.tgz

## Create config file for Transifex
#cd /<tx_project_path>/transifex/ && manage.py build_solr_schema > /opt/apache-solr-1.4.1/example/solr/conf/schema.xml

## OPTIONAL: Customize some settings based on http://docs.haystacksearch.org/dev/installing_search_engines.html#more-like-this
#vim /opt/apache-solr-1.4.1/example/solr/conf/solrconfig.xml

## Running the service at http://localhost:8983/solr/
#cd /opt/apache-solr-1.4.1/example/
#java -jar start.jar &


#Creating the index
#-------------------

#cd /<tx_project_path>/transifex/

## Create the index for the first time
#./manage.py rebuild_index

## Update index with projects modified from 2 hours ago on
#./manage.py update_index --age=2


