Optimizing Solr for Sorting
Posted
by
devinfoley
on Stack Overflow
See other posts from Stack Overflow
or by devinfoley
Published on 2011-02-22T07:23:16Z
Indexed on
2011/02/22
7:24 UTC
Read the original article
Hit count: 151
I'm using Solr for a realtime search index. My dataset is about 60M large documents. Instead of sorting by relevance, I need to sort by time. Currently I'm using the sort flag in the query to sort by time. This works fine for specific searches, but when searches return large numbers of results, Solr has to take all of the resulting documents and sort them by time before returning. This is slow, and there has to be a better way.
What is the better way?
© Stack Overflow or respective owner