To use lfs_solr you need the following prerequisites:
Solr. Please see http://lucene.apache.org/solr/tutorial.html for more.
LFS. Please see http://packages.python.org/django-lfs/introduction/installation.html for more.
pysolr. You can just easy_install it (this is done automatically if you install lfs_solr via easy_install):
$ easy_install pysolr
Put lfs_solr to the PYTHONPATH or install it via easy install:
$ easy_install lfs_solr
Add lfs_solr to INSTALLED_APPS within settings.py of your Django project:
INSTALLED_APPS = (
"..."
"lfs_solr",
"...",
)
Add lfs_solr’s urls to your project’s url.py. Make sure that they are before LFS’ urls:
urlpatterns = patterns("",
(r'', include('lfs_solr.urls')),
(r'', include('lfs.core.urls')),
...
)
Put the provided schema.xml to your Solr conf directory and start Solr.
Start your LFS instance
Visit following URL to index your products (this must be done only once):
http://<your-domain>/index-products