Elastic query: remove matching on document type.

ElasticSearch 6 removes support for different document types in one index,
so we don't have to match for it any more. Furthermore, elasticsearch_dsl
seems to save with the generic 'doc' type, so this check is
counter-productive.
This commit is contained in:
2018-01-12 11:17:52 +01:00
parent 3e5ccaf8fd
commit 8326d8e7fe

View File

@@ -72,9 +72,7 @@ def do_node_search(query: str, terms: dict, page: int) -> dict:
Q('term', tags=query), Q('term', tags=query),
] ]
must = [ must = []
Q('term', _type='node')
]
if not query: if not query:
should = [] should = []