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

fix order when search all

parent 77d2f0d3
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,8 @@ module SearchService
}
},
size: @search.results_per_page,
from: ((@search.page.to_i) * (@search.results_per_page.to_i)).to_s
from: ((@search.page.to_i) * (@search.results_per_page.to_i)).to_s,
sort: order_hash
}
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