From bf21af8dcfaf3736ec4ad441dd86124f2d5eae6a Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Wed, 25 Jul 2012 22:51:32 -0400 Subject: [PATCH] Elastic search. Fuck you, Solr. --- requirements.txt | 3 ++- settings.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index c67c7ee..c970f19 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,8 +13,8 @@ gunicorn lxml parsedatetime psycopg2 +pyelasticsearch Pygments -pysolr python-memcached python-postmark pyyaml @@ -26,6 +26,7 @@ Werkzeug git+git://github.com/dlo/bottlenose.git git+git://github.com/yoavaviram/python-amazon-simple-product-api.git +git+git://github.com/toastdriven/pyelasticsearch.git git+https://github.com/toastdriven/django-haystack.git@master#egg=django-haystack hg+https://bitbucket.org/ubernostrum/django-registration#egg=django-registration git+https://github.com/toastdriven/django-tastypie.git#egg=django-tastypie diff --git a/settings.py b/settings.py index 9f37959..3ae1ac8 100644 --- a/settings.py +++ b/settings.py @@ -218,8 +218,9 @@ AUTH_PROFILE_MODULE = 'accounts.UserProfile' # Search HAYSTACK_CONNECTIONS = { 'default': { - 'ENGINE': 'haystack.backends.solr_backend.SolrEngine', - 'URL': 'http://127.0.0.1:8983/solr' + 'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine', + 'URL': 'http://127.0.0.1:9200/', + 'INDEX_NAME': 'haystack', }, }