开发者

Sorting Lucene docs in Luke

I want to fire up a query in luke for luncene indexed document. I want to sort the results before they are fetched. What is the lucene syntax to sort the data. I don't need java/or-language-specific code to sort; instead raw lucene syntax to sort the data?

Can anyone give me a sample example for sorting by 2 fi开发者_开发知识库elds in descending order?

Cheers


Lucene queries don't have a sort syntax. You have to use the Sort object in your implementation of lucene if you need to sort

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜