Skip to content
Snippets Groups Projects
Commit 795540a4 authored by Valentin Rigal's avatar Valentin Rigal
Browse files

WIP: SimpleText query for references

parent f3b81a19
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,8 @@ class ElementSearch(SearchAPIView):
),
)
if query:
elastic_query |= Q('wildcard', references='*{}*'.format(query.lower()))
elastic_query |= Q('simple_query_string', fields=['references'], query=query.lower())
# elastic_query |= Q('wildcard', references='*{}*'.format(query.lower()))
search = search.query(elastic_query)
return search
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment