posted 16 years ago
I'm part of the 'we' extending the software udittmer referred to. I figured out what was going on. Lucene is returning the correct values. (post id are date should be equivalent here)
Then GenericLuceneDAO.getPostsData generates the following SQL:
Which the database is NOT guaranteed to return in the order the in clause specifies. In our case (postgresql 8.2), the results were returned in a different order. Therefore the results return to the users unsorted.
I fixed it in our local installation by adding a call to the following method at the end of getPostsData().
[originally posted on jforum.net by boyarsky]