Even i have a similar requirement. I need the percentage match. The way I am going about it is doing 2 searches
eg if my search string is "pizza cheese " and my document has " pizza cheese ketchup" percentage match = ( score of searching "pizza cheese" in " pizza cheese ketchup") / ( score of searching "pizza cheese" in "pizza cheese") If there is a better way of going about this , please do let me know . On Tue, May 5, 2009 at 6:34 PM, Peter Keegan <peterlkee...@gmail.com> wrote: > Maybe joseph means 'percentage of the theoretical maximum score' for the > query? > See this thread: > http://www.gossamer-threads.com/lists/lucene/java-user/61075?search_string=theoretical%20maximum%20score;#61075 > > Peter > > On Tue, May 5, 2009 at 8:36 AM, Erick Erickson <erickerick...@gmail.com>wrote: > >> But to echo Chris, what does percentage mean? The percent >> of the words that matched? So, in your example, >> would document one match 75%, doc two 50% and >> doc three 100%? And what would that mean to a user? >> >> I think it would help if you backed up and told us *why* >> you want these percentages. A higher level view than >> just asking "how do I calculate percent". I have the >> feeling that this is an XY problem. i.e. you're asking >> about X, but the real problem is Y which may be unrelated. >> >> Best >> Erick >> >> On Tue, May 5, 2009 at 6:42 AM, joseph.christopher >> <jos...@kottsoftware.com>wrote: >> >> > >> > >> > joseph.christopher wrote: >> > > >> > > >> > > thanks for the reply, >> > > >> > > By percentage, what I meant is that how much matching is the retrived >> > > result with the search query. >> > > >> > > for exmple : if I have 3 indexed documnts like >> > > >> > > 1) chicken onion cheese pizza >> > > >> > > 2) mixed vegetable cheese pizza >> > > >> > > 3) cheese pizza >> > > >> > > and I searched for "chicken cheese pizza" >> > > >> > > Is it possibe that the system can give a percentage match score for the >> > > search result ,compairing it with the search query. >> > > >> > > >> > > >> > > >> > > >> > > >> > > 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 >> > > >> > > >> > > >> > >> > -- >> > View this message in context: >> > >> http://www.nabble.com/How-to-het-the-score-in-percentage-tp23293756p23384986.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 >> > >> > >> > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org