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:
@@ -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 = []
|
||||||
|
Reference in New Issue
Block a user