src/p4l/settings.py
changeset 113 c05567404888
parent 99 0d54489e8b26
child 114 93b45b4f423c
--- a/src/p4l/settings.py	Fri Sep 20 15:44:11 2013 +0200
+++ b/src/p4l/settings.py	Fri Sep 20 22:21:48 2013 +0200
@@ -136,6 +136,7 @@
     'django_extensions',
     'south',
     'rest_framework',
+    'haystack',
     'p4l'
 )
 
@@ -173,6 +174,16 @@
     }
 }
 
+HAYSTACK_CONNECTIONS = {
+    'default': {
+        'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
+        'URL': '',
+        'INDEX_NAME': 'p4l',
+    },
+}
+
+
+
 NB_RECORDS_BY_PAGE = 20
 SPARQL_QUERY_ENDPOINT = "http://localhost:8080/openrdf-sesame/repositories/plan4learning"
 SPARQL_SUBJECT_QUERIES = {