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.
---
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.
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) {
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
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
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
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
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