lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sosh...@business.com
Subject RE: min hit score
Date Tue, 30 Oct 2001 22:56:23 GMT
Hello Doug,

where can I obtain the low-level hitcollector api? is it part of lucene?  I
agree with you on the abstractness of those scores though, I just wanna play
around with that filtering though.  thanks.

-scott

-----Original Message-----
From: Doug Cutting [mailto:DCutting@grandcentral.com]
Sent: Tuesday, October 30, 2001 2:14 PM
To: 'Lucene Users List'
Subject: RE: min hit score


You can do this using the low-level HitCollector-based search API.

That said, I do not recommend it.  It will not make things much more
efficient.

Lucene's scores are not really that meaningful on an absolute scale: they're
only meaningful relative to other scores for the same query.  So you're best
off just displaying the highest scoring hits.  Lucene does things behind the
scenes to make this efficient.

Doug

> From: soshima@business.com [mailto:soshima@business.com]
> Sent: Tuesday, October 30, 2001 1:51 PM
> To: lucene-user@jakarta.apache.org
> Subject: min hit score
> 
> 
> Anyone know how to filter pre result sets with a minimum score?
> 
> lets say i search for cars and it returns me back 100 total 
> matched results
> where my returned rows = 10 and start index = 0.
> 
> currently by default lucene sorts the results based on the hit score.
> however is there a way to set the minimum hit score pre search?
> 
> so hypothetically for my car search say 50 of the 100 meet 
> the score...then
> 
> my new result set should just return 50 total matched results 
> while keeping
> intact the returned rows 10 and start index = 0.  
> 
> if we do post rendering of these hit scores then there is no 
> way we nkow th
> total match result number.
> 
> just wondering if anyone knows a way to set min hit score or 
> a clean hack
> around it.  thanks!!!
> 
> -scott 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message