Optimizing Solr for Sorting

后端 未结 3 567
一生所求
一生所求 2021-02-04 18:36

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

3条回答
  •  忘了有多久
    2021-02-04 19:34

    Obvious first question: what's type of your time field? If it's string, then sorting is obviously very slow. tdate is even faster than date.

    Another point: do you have enough memory for Solr? If it starts swapping, then performance is immediately awful.

    And third one: if you have older Lucene, then date is just string, which is very slow.

提交回复
热议问题