lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felipe Lobo <fel...@jusbrasil.com.br>
Subject Re: Boost and ordering based on most recently updated
Date Thu, 05 Aug 2010 14:03:14 GMT
You have to check if the lucene normalization isn't approaching diferent
boosts to the same value.


2010/8/4 jayendra patil <jayendra.patil@gmail.com>

> 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.
>
> Regards,
> Jayendra
>
> On Wed, Aug 4, 2010 at 5:46 PM, Brian Pontarelli <brian@pontarelli.com
> >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: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
> >
> >
>



-- 
Felipe Lobo
www.jusbrasil.com.br

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