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

Merge branch 'licenses' into 'master'

fix order when search all

See merge request !427
parents 77d2f0d3 bf3cef59
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