Migrated from xapian to elastic

This commit is contained in:
Théo Durr
2023-11-05 23:42:52 +01:00
parent f41ff281fb
commit fa758867cc
4 changed files with 12 additions and 32 deletions

View File

@ -191,9 +191,9 @@ TEMPLATES = [
HAYSTACK_CONNECTIONS = {
"default": {
"ENGINE": "xapian_backend.XapianEngine",
"PATH": os.path.join(os.path.dirname(__file__), "search_indexes", "xapian"),
"INCLUDE_SPELLING": True,
"ENGINE": "haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine",
'URL': 'http://localhost:9200/',
'INDEX_NAME': 'haystack',
}
}