mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 01:46:24 +01:00
Implement empty Elasticsearch5Index class
Just so we have the complete set of classes in this backend
This commit is contained in:
parent
60c9d7c26c
commit
c2e944fb3b
@ -1,8 +1,8 @@
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from .elasticsearch2 import (
|
||||
Elasticsearch2Mapping, Elasticsearch2SearchBackend, Elasticsearch2SearchQuery,
|
||||
Elasticsearch2SearchResults)
|
||||
Elasticsearch2Index, Elasticsearch2Mapping, Elasticsearch2SearchBackend,
|
||||
Elasticsearch2SearchQuery, Elasticsearch2SearchResults)
|
||||
|
||||
|
||||
class Elasticsearch5Mapping(Elasticsearch2Mapping):
|
||||
@ -11,6 +11,10 @@ class Elasticsearch5Mapping(Elasticsearch2Mapping):
|
||||
set_index_not_analyzed_on_filter_fields = False
|
||||
|
||||
|
||||
class Elasticsearch5Index(Elasticsearch2Index):
|
||||
pass
|
||||
|
||||
|
||||
class Elasticsearch5SearchQuery(Elasticsearch2SearchQuery):
|
||||
mapping_class = Elasticsearch5Mapping
|
||||
|
||||
@ -72,6 +76,7 @@ class Elasticsearch5SearchResults(Elasticsearch2SearchResults):
|
||||
|
||||
class Elasticsearch5SearchBackend(Elasticsearch2SearchBackend):
|
||||
mapping_class = Elasticsearch5Mapping
|
||||
index_class = Elasticsearch5Index
|
||||
query_class = Elasticsearch5SearchQuery
|
||||
results_class = Elasticsearch5SearchResults
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user