lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaus Hubert <>
Subject RE: boosting results with a field from the index
Date Tue, 03 Jan 2006 16:37:55 GMT
Wow, that was fast :-)

Right, why haven't I came up with the idea on just
sorting the results by
importance... Lol...

OK, I will test both solutions and see what I like
best. Such a great piece
for software...

-----Original Message-----
From: Grant Ingersoll [] 
Sent: Tuesday, January 03, 2006 5:26 PM
Subject: Re: boosting results with a field from the

Hi Klaus,

You might want to just set the boost value of the
Document using your 
importance number, then Lucene will factor that in
automatically when 
scoring.  See the Document#setBoost javadoc for info.

You could also sort on the field, I think, so that the
more important 
docs come to the top.


Klaus Hubert wrote:

>Hi and a Happy New Year!
>I created a lucene index with 2 fields (text and
importance). The text
contains the real text and importance is a field where
I manually give a
number between 1 and 5 for the related document. When
I search the index I
find the documents with the highest revelancy weighted
automatically by
lucene. I'm just wondering if I can boost the results
with the importance
field I already have stored in the index. As I result
I expect the same
search results just weighted differently. Something
like relevancy
multiplied by importance.
>Thank you so much,
>  Klaus
>Yahoo! Photos
> Ring in the New Year with Photo Calendars. Add
photos, events, holidays,


Grant Ingersoll 
Sr. Software Engineer 
Center for Natural Language Processing 
Syracuse University 
School of Information Studies 
337 Hinds Hall 
Syracuse, NY 13244 
Voice:  315-443-5484 
Fax: 315-443-6886 

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

Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 

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

View raw message