Regular user search now also finds by email address
This commit is contained in:
parent
fdab66a500
commit
75a6de18b2
@ -92,6 +92,7 @@ def do_user_search(query: str, terms: dict) -> dict:
|
|||||||
should = [
|
should = [
|
||||||
Q('match', username=query),
|
Q('match', username=query),
|
||||||
Q('match', full_name=query),
|
Q('match', full_name=query),
|
||||||
|
Q('match', email=query),
|
||||||
]
|
]
|
||||||
|
|
||||||
must = [
|
must = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user