Some values in the norm/boost area are stored encoded with some loss of precision. Details in the javadocs somewhere. What values do you get when you change the boost?
-- Ian. 2012/1/14 ltomuno <ltom...@163.com>: > the following message comes from Explanation explain > 0.09375 = (MATCH) fieldWeight(name:85 in 8687), product of > 1.0 = tf(termFreq(name:85)=1) > 1.0 = idf(docFreq=1406, maxDocs=14129) > 0.09375 = fieldNorm(field=name, doc=8687) > > > fieldNorm 0.09375 > the value 0.09375 is what determines and where can control it? > use 0.1 boost on the name field > use CustomSimilarity > public float computeNorm(String field, FieldInvertState state) { > return state.getBoost(); > } > public float queryNorm(float sumOfSquaredWeights) { > return 1F; > } > public float tf(float freq) { > return (float) 1F; > } > public float sloppyFreq(int distance) { > return 1F; > } > public float idf(int docFreq, int numDocs) { > return 1F; > } > public float coord(int overlap, int maxOverlap) { > return 1F; > } > > > thanks --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org