Re: Re: Scoring without normalization!

2004-07-15 Thread Joshua Lewis
Hi, Note that as http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/Similarity.html#lengthNorm(java.lang.String,%20int) points out: "[T]hese values are computed under IndexWriter.addDocument(Document) and stored then using {#encodeNorm(float)}. Thus they have limited precision,

Re: Re: Scoring without normalization!

2004-07-15 Thread Jones G
Thanks. I tried overriding Similarity, returning 1 in lengthNorm and queryNorm and setSimilarity on IndexSearcher with this. Query: 1 Found: 1540632 Rank: 1 ID: 8157438 Score: 0.9994 3.73650457E11 = weight(title:iron in 159395), product of: 7.0507255 = queryWeight(title:iron), product o

Re: Scoring without normalization!

2004-07-15 Thread Doug Cutting
Have you looked at: http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/Similarity.html in particular, at: http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/Similarity.html#lengthNorm(java.lang.String,%20int) http://jakarta.apache.org/lucene/docs/api/org/apache/lucen

Re: RE: Scoring without normalization!

2004-07-15 Thread Jones G
Sadly, I am still running into problems Explain shows the following after the modification. Rank: 1 ID: 11285358Score: 5.5740864E8 5.5740864E8 = product of: 8.3611296E8 = sum of: 8.3611296E8 = product of: 6.6889037E9 = weight(title:iron in 1235940), product of: 0.12621

Re: RE: Scoring without normalization!

2004-07-14 Thread Jones G
Thanks! Just what I wanted. On Thu, 15 Jul 2004 Anson Lau wrote : >If you don't mind hacking the source: > >In Hits.java > >In method "getMoreDocs()" > > > > // Comment out the following > //float scoreNorm = 1.0f; > //if (length > 0 && scoreDocs[0].score > 1.0f) { > // scoreNorm

RE: Scoring without normalization!

2004-07-14 Thread Anson Lau
If you don't mind hacking the source: In Hits.java In method "getMoreDocs()" // Comment out the following //float scoreNorm = 1.0f; //if (length > 0 && scoreDocs[0].score > 1.0f) { // scoreNorm = 1.0f / scoreDocs[0].score; //} // And just set scoreNorm to 1. i