lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: boosting query
Date Thu, 19 Mar 2009 13:40:01 GMT
First off, I would start by using Lucene's explain functionality to  
see why one result appears before the other. The explain method will  
tell you all the factors that go into scoring each of your results, as  
it goes beyond just term frequency.

Finally, you might find

  helpful.  One of the things I often tell people is that if you know  
a certain result needs to be in a certain place for a certain query,  
just put it there.  Otherwise, don't sweat relative position too much  
unless you have a result that you think is good buried (i.e. page 5)  
deep down in your results.


On Mar 19, 2009, at 8:54 AM, m.harig wrote:

> Hello all,
>               i've a search application which uses lucene-2.3.0 ,  
> and my
> application running for a banking domain.  Am indexing some banking  
> urls as
> an input and am searching some keywords.   What my doubt is when i  
> search
> "cards", the less count keyword url comes up. I mean , for example
>                                                    http:// 
>                                                    http:// 
>                                                    http:// 
>                        in that urls , has got  
> more
> number of words count "cards" than the other two sites. But when am
> searching am getting the as the last search  
> result,
> other two urls are coming up.
>                      But i need the url which has more number word  
> counts
> will come up .  I used filed.setBoost(100f); Is it the right way to  
> boost
> the field? How do i do my above. ? please anyone help me out of  
> this.......
> -- 
> View this message in context:
> Sent from the Lucene - Java Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message