Skip to content
Snippets Groups Projects
Commit c221f5e4 authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Merge branch 'elasticsearch_update' into 'master'

Elasticsearch update

See merge request !413
parents 59387a6d 6a35af76
No related branches found
No related tags found
No related merge requests found
......@@ -37,14 +37,15 @@ module SearchService
end
def mount_query
match_all_query = {
query: {
bool: {
filter: mount_filter
}
}
match_all_query = {
bool: {
must: {
match_all: {}
},
filter: mount_filter
}
}
return match_all_query if @search.query == "*"
return match_all_query if @search.query == '*'
{
function_score: {
......
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