- dataservice.ts: sort parameter 'server_date-published desc' in method search (term, filterItems, start?)

This commit is contained in:
Arno Kaimbacher 2020-05-25 14:39:10 +02:00
parent 1dbec01782
commit d7cc8d74de
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -58,7 +58,7 @@ export default {
});
});
var query = "&q=" + term;
var query ="&sort=server_date_published desc" + "&q=" + term;
// $dismax->setQueryFields('title^3 abstract^2 subject^1');
@ -72,6 +72,7 @@ export default {
return res.data;//.response;//.docs;
},
// for the autocomplete search
async searchTerm(term: string): Promise<any> {
// solr endpoint
// const host = 'http://voyagerdemo.com/';