I am trying to specify sort on a String field in my query but seeing memory issues since the index has around 50M docs.
Why is that Solr actually sorts the field values for all the documents in the index and NOT just the hits returned from the query. Is there an alternative to these performance problems.