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 <jos...@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-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >