lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: How to het the score in percentage
Date Wed, 29 Apr 2009 16:12:30 GMT
Would a TopDocCollector work for you? You can get a TopDoc
object from that collector, from which you can get the max score.
That, along with the score provided for each doc should give you
a percentage.

Best
Erick

On Wed, Apr 29, 2009 at 5:30 AM, joseph.christopher <joseph@kottsoftware.com
> wrote:

>
> Hi Experts,
>
> We are in a procees of changing our existing fuzzy search engine to lucene,
> but we are facing a roadblock
> here ie, in our existing system we are showing the search score in
> percenetage but lucene provides the search score in numbers which is
> derived
> from some internal logic. Can anybody give some tips for converting the
> lucene score to percentage or is there any way to retrive the score as
> percentage from lucene search.
>
> Thanks in advance.
>
>
> --
> View this message in context:
> http://www.nabble.com/How-to-het-the-score-in-percentage-tp23293723p23293723.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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