T53161 Proof of Concept working

This commit is contained in:
2017-11-17 14:05:24 +01:00
parent 41eb5e256f
commit 76bb68dcc8
3 changed files with 45 additions and 48 deletions

View File

@@ -24,8 +24,10 @@ def do_search(query: str) -> dict:
"""
should = [
Q('match', name=query),
Q('match', user_name=query),
Q('match', project_name=query),
{"match": {"project.name": query}},
{"match": {"user.name": query}},
Q('match', description=query),
Q('term', media=query),
Q('term', tags=query),