SOLR results are usually sorted by "best match" according to your search criteria. Is it possible to sort the results alphabetically by a given SOLR field?
I understand that this is not a typical use case, but my motivation. We have quite a bit of code written around SOLR that executes queries based on custom search queries in different areas of our data. In most cases, we want to streamline relevance (i.e., better matches first).
But one abnormal use case requires us to return data sorted alphabetically by field. I could fulfill this query using our SQL database (avoiding SOLR altogether), but I would have to replicate a lot of code that would be adapted to consume SOLR results (in particular, faces). I hope to use the same code path if you can get such an order from SOLR.
source share