Closed martinantonmueller closed 2 years ago
We do have the document sort key feature:
https://endings.uvic.ca/staticSearch/docs/howDoIUseIt.html#configuringDocSortKey
If you create your sort keys as ISO dates, then they will naturally sort in order. However, this is normally overridden by the hit score, so to get a true date-based sort, you may have to override the method SSResultSet~sortByScoreDesc:
https://github.com/projectEndings/staticSearch/blob/v1.4.0/js/SSResultSet.js#L315
to make it disregard the score and use the sort key instead. @joeytakeda, do you think we should make this configurable?
Perfect! Thank you!
We have a similar ticket for this already: #86 and I think it is certainly something worth revisiting
Thanks @joeytakeda I'd forgotten about that ticket. I'm going to close this one and move the discussion over there, because I think there's one very simple config option we could add that would solve the problem.
We edit a diary/journal. So an often used search is to look for the first appearance of a term. Is there a possibility for the output of the search results to be in chronological order rather than based on score?