开发者

default sort in lucene.net

开发者 https://www.devze.com 2023-03-01 08:23 出处:网络
My index contains ~4 million recrords. When I sort the results, the query runs much slower, which is not surprising.

My index contains ~4 million recrords.

When I sort the results, the query runs much slower, which is not surprising.

My question is, is there some way to create the index so that when I make a call and don't pass a sort, it so开发者_如何学Gorts by field I most recently use?

Thanks.


By default lucene returns the results in an order, which depends on the relevance. As far as i know, you have to use the boost, the sort function or something else if you like an other listing order. What ever you take - the results will not return faster by using an sort or boost function.

0

精彩评论

暂无评论...
验证码 换一张
取 消