summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Raggam <raggam-nl@adm.at>2011-07-18 13:09:56 (GMT)
committerJohannes Raggam <raggam-nl@adm.at>2011-07-18 13:09:56 (GMT)
commit6e527861f100efba2fd9c1f821782f20e2000d93 (patch)
treee0a6d73aaf312ed81f88eff6ec74d7c68796c161
parent2aaaf95a32f2e2d2ca1127d39b068f6d6a862aa6 (diff)
remove haystack search
-rw-r--r--program/search_indexes.py13
-rw-r--r--requirements.txt2
-rw-r--r--search_sites.py2
-rw-r--r--settings.py6
-rw-r--r--templates/search/indexes/program/note_SearchableText.txt2
-rw-r--r--templates/search/indexes/program/show_SearchableText.txt3
6 files changed, 0 insertions, 28 deletions
diff --git a/program/search_indexes.py b/program/search_indexes.py
deleted file mode 100644
index 4b0cf74..0000000
--- a/program/search_indexes.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from haystack.indexes import CharField, SearchIndex
-from haystack import site
-
-from models import Note, Show
-
-class NoteIndex(SearchIndex):
- SearchableText = CharField(document=True, use_template=True)
-
-class ShowIndex(SearchIndex):
- SearchableText = CharField(document=True, use_template=True)
-
-site.register(Note, NoteIndex)
-site.register(Show, ShowIndex)
diff --git a/requirements.txt b/requirements.txt
index 68cb1af..f22e9ab 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,7 +2,5 @@ Django==1.2.5
MySQL-python==1.2.3
PIL==1.1.7
PyYAML==3.09
-django-haystack==1.2.4
django-tinymce==1.5.1a2
-pysolr==2.0.14
python-dateutil==1.5
diff --git a/search_sites.py b/search_sites.py
deleted file mode 100644
index e8d4e13..0000000
--- a/search_sites.py
+++ /dev/null
@@ -1,2 +0,0 @@
-import haystack
-haystack.autodiscover()
diff --git a/settings.py b/settings.py
index ed98688..4cefed6 100644
--- a/settings.py
+++ b/settings.py
@@ -68,15 +68,9 @@ INSTALLED_APPS = (
'django.contrib.admin',
'program',
'nop',
- 'haystack',
'tinymce',
)
-HAYSTACK_SITECONF = 'search_sites'
-HAYSTACK_SEARCH_ENGINE = 'solr'
-HAYSTACK_SOLR_URL = 'http://localhost:8988/solr'
-HAYSTACK_ID_FIELD = 'docid'
-
TINYMCE_DEFAULT_CONFIG = {
'plugins' : 'contextmenu',
'theme': 'advanced',
diff --git a/templates/search/indexes/program/note_SearchableText.txt b/templates/search/indexes/program/note_SearchableText.txt
deleted file mode 100644
index 2421b4f..0000000
--- a/templates/search/indexes/program/note_SearchableText.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-{{ object.title }}
-{{ object.content }} \ No newline at end of file
diff --git a/templates/search/indexes/program/show_SearchableText.txt b/templates/search/indexes/program/show_SearchableText.txt
deleted file mode 100644
index f08b515..0000000
--- a/templates/search/indexes/program/show_SearchableText.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-{{ object.name }}
-{{ object.description }}
-{{ object.short_description }} \ No newline at end of file