search - Sort hibernate lucene result by publication date -


scenario of searching news, show latest news on top. how should in hibernate lucene search? seems default shows earliest on top.

well don't want set sort manually on publication date, makes relevance useless.

i found answer here

hibernate search sorting

the key point add "sortfield.field_score" in sort field.


Comments

Popular posts from this blog

python - Evaluating the next line in a For Loop while in the current iteration -

android - Hide fragments upon button click -

mongodb - How to keep track of users making Stripe Payments -