lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jayendra patil <>
Subject Re: Boost and ordering based on most recently updated
Date Wed, 04 Aug 2010 23:48:01 GMT
you can probably try using the sort parameter with the primary sort being on
score and the secondary sort being on the recent update date.
e.g. sort=score desc, recentUpdateDate desc

So the recent update date would take affect in the group where the document
have same score.


On Wed, Aug 4, 2010 at 5:46 PM, Brian Pontarelli <>wrote:

> I have a situation where I'm using a Boost on documents to bump them up in
> the search results when a search has multiple documents with the same hits
> in the search query. However, it looks like if two or more documents have
> the same rank after the Boost is applied, the search results are ordered
> such that the first search result is the first document that was added to
> the index and the last result is the last document that was added or
> updated.
> I want to change this so that the most recently updated document is always
> at the top of the search results. This would happen after the Boost is
> applied.
> Anyone know how to do this?
> Thanks,
> -bp
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message