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

javascript - Access directive function from component class or template -

php - Auto increment employee ID -

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