开发者

default sort in lucene.net

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜