lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: Lucene scoring
Date Tue, 12 Mar 2013 10:50:49 GMT
Sounds like a job for boosting.  Document.setBoost() and/or
Field.setBoost().  The former has gone away in lucene 4.x.  See the
migration guide.

Or execute 2 searches, restricting the first to the contact docs or
whichever you want to be top of the list.


On Tue, Mar 12, 2013 at 7:36 AM, lucas van overberghe
<> wrote:
> Hi,
> We are currently using Hibernate Search but had some questions
> regarding scoring. We are implementing a quicksearchengine in our
> webapp but want to customize the scoring a bit.
> Let's say, you have a User named Peter, and a search is done on Peter.
> The first result should therefore not be a document where his name
> pops up a few times but instead be the contact details of Peter where
> his name might popup only once.
> How would we go and implement this ? Is it neccesary to change the
> Lucene scoring algorithm or is there a better/easier way?
> Thanks and kind regards,
> Lucas Van Overberghe
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message