Re: Search Score percentage, Should not be relative to the highest score

2011-01-15 Thread Amr ElAdawy
any ideas? -- View this message in context: http://lucene.472066.n3.nabble.com/Search-Score-percentage-Should-not-be-relative-to-the-highest-score-tp2183420p2265633.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. ---

Re: Search Score percentage, Should not be relative to the highest score

2011-01-05 Thread Amr ElAdawy
2.9.4 -- View this message in context: http://lucene.472066.n3.nabble.com/Search-Score-percentage-Should-not-be-relative-to-the-highest-score-tp2183420p2199732.html Sent from the Lucene - Java Users mailing list archive at Nabble.com.

Re: Search Score percentage, Should not be relative to the highest score

2011-01-04 Thread Amr ElAdawy
Did not work, I am using my own Similarity and the coord method is not called, because the disableCoord variable is set to true from FuzzyQuery public Similarity getSimilarity(Searcher searcher) { Similarity result = super.getSimilarity(searcher); if (disableCoord) {

Re: Search Score percentage, Should not be relative to the highest score

2011-01-04 Thread Amr ElAdawy
I am overriding the coord method in my customSimilairty Class and it will be return (float)overlap/(float)maxOverlap; I'll update you. Thanks for your help -- View this message in context: http://lucene.472066.n3.nabble.com/Search-Score-percentage-Should-not-be-relative-to-the-highest-scor

Re: Search Score percentage, Should not be relative to the highest score

2011-01-03 Thread Amr ElAdawy
Consider the following. Query: term1 term2 Doc1: term1 term2 Doc2: term1 term2 term3 term4 Doc3: term1 term1 term3 Doc4: term3 term4 For the above documents, Doc1 and Doc2 will b exact match ( as they contain all the terms in the search Query). Doc3 is partially match as it contains term1 only

Re: Search Score percentage, Should not be relative to the highest score

2011-01-03 Thread Amr ElAdawy
Hi iorixxx, Thanks a lot for your reply I had read the link and I understand the concern, however, the normalization is happening inside lucene. Where the normalizing value is the inverse of the maxScore. I can alter the code to leave the original score, however it is a business requirements to

Search Score percentage, Should not be relative to the highest score

2011-01-02 Thread Amr ElAdawy
Dear All, When using lucene to search documents, the results have a score based on their relativity to the search term. Inside lucene, the score percentage is calculated as a percentage of the maximum score achieved. Assume we are searching for Amr ElAdawy We get results like

Search Score percentage, Should not be relative to the highest score

2011-01-02 Thread Amr ElAdawy
Dear All, When using lucene to search documents, the results have a score based on their relativity to the search term. Inside lucene, the score percentage is calculated as a percentage of the maximum score achieved. Assume we are searching for Amr ElAdawy We get results like