django-solr - Solr Search Engine ORM for Django
http://yuji.wordpress.com/2011/08/18/installing-solr-and-django-haystack-on-ubuntu-with-openjdk/
pip install django-haystack
sudo apt-get install openjdk-6-jre jetty solr-jetty
./manage.py build_solr_schema > schema.xml
sudo mv schema.xml /etc/solr/conf/schema.xml
sudo vi /etc/jetty/jetty.xml
#set default HAYSTACK_SOLR_URL setting port
#<Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
sudo vi /etc/solr/conf/solrconfig.xml
#<lockType>simple</lockType>
#<unlockOnStartup>true</unlockOnStartup>
sudo vi /etc/init.d/jetty
# change port to 8983
# change user to root
sudo vi /etc/default/jetty
# change NO_START to be 0
# JAVA_HOME=YOUR_JDK_HOME
sudo /etc/init.d/jetty restart
./manage.py rebuild_index
No comments:
Post a Comment