GSearch: add a sortFields parameter to gfindObjects.
Robert Waltz: "I am curious as to the best manner to include lucene sorting in the lucene implementation of gsearch."
"I have a requirement to allow the user to select from a list of fields to sort by. So, I will need to pass the field to sort by via the query string in a REST call."
There is one statement in fgslucene.Statement.java that should be modified for sorting, namely
Hits hits = searcher.search(query);
where an additional Sort parameter may be given.
The solutions seems to be to add a sortFields parameter to gfindObjects.
Log in to post a comment.