Skip to content
Snippets Groups Projects
Commit 28251606 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

maybe now filter works when search by *

parent 9fc7b30c
No related branches found
No related tags found
No related merge requests found
......@@ -37,11 +37,12 @@ module SearchService
end
def mount_query
match_all_query = {
filtered:{
query: { match_all: {} },
filter: mount_filter
}
match_all_query = {
query: {
bool: {
filter: mount_filter
}
}
}
return match_all_query if @search.query == "*"
......
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