Searched refs:encodeNormValue (Results 1 - 25 of 26) sorted by relevance

12

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DNormsWriterPerField.java76 norms[upto] = docState.similarity.encodeNormValue(norm);
H A DNormsWriter.java41 private final byte defaultNorm = Similarity.getDefault().encodeNormValue(1.0f);
H A DMultiReader.java325 Arrays.fill(result, offset, result.length, Similarity.getDefault().encodeNormValue(1.0f));
H A DIndexReader.java1263 setNorm(doc, field, Similarity.getDefault().encodeNormValue(value));
H A DSegmentReader.java600 Arrays.fill(bytes, offset, bytes.length, Similarity.getDefault().encodeNormValue(1.0f));
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestMaxTermFrequency.java102 public byte encodeNormValue(float f) { method in class:TestMaxTermFrequency.TestSimilarity
H A DTestUniqueTermCount.java98 public byte encodeNormValue(float f) { method in class:TestUniqueTermCount.TestSimilarity
H A DTestNorms.java216 float norm1 = similarityOne.decodeNormValue(similarityOne.encodeNormValue(norm));
234 public byte encodeNormValue(float f) { method in class:TestNorms.CustomNormEncodingSimilarity
H A DTestIndexReaderOnDiskFull.java140 reader.setNorm(docId, "content", sim.encodeNormValue(2.0f));
H A DTestSegmentReader.java182 byte norm1 = Similarity.getDefault().encodeNormValue(1.0f);
H A DTestIndexReaderCloneNorms.java315 Similarity.getDefault().encodeNormValue(norm));
H A DTestIndexReaderClone.java428 final byte encoded = Similarity.getDefault().encodeNormValue(17.0f);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestMaxTermFrequency.java102 public byte encodeNormValue(float f) { method in class:TestMaxTermFrequency.TestSimilarity
H A DTestUniqueTermCount.java98 public byte encodeNormValue(float f) { method in class:TestUniqueTermCount.TestSimilarity
H A DTestNorms.java216 float norm1 = similarityOne.decodeNormValue(similarityOne.encodeNormValue(norm));
234 public byte encodeNormValue(float f) { method in class:TestNorms.CustomNormEncodingSimilarity
H A DTestIndexReaderOnDiskFull.java140 reader.setNorm(docId, "content", sim.encodeNormValue(2.0f));
H A DTestSegmentReader.java142 byte norm1 = Similarity.getDefault().encodeNormValue(1.0f);
H A DTestIndexReaderCloneNorms.java315 Similarity.getDefault().encodeNormValue(norm));
H A DTestIndexReaderClone.java428 final byte encoded = Similarity.getDefault().encodeNormValue(17.0f);
/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/index/
H A DFieldNormModifier.java151 reader.setNorm(d, fieldName, sim.encodeNormValue(sim.computeNorm(fieldName, invertState)));
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DSimilarity.java503 * However the resulted <i>norm</i> value is {@link #encodeNormValue(float) encoded} as a single byte
594 * @see #encodeNormValue(float)
601 * @see #encodeNormValue(float)
625 * {@link #encodeNormValue(float)}.
654 * {@link #encodeNormValue(float)}.
705 public byte encodeNormValue(float f) { method in class:Similarity
710 * Static accessor kept for backwards compability reason, use encodeNormValue instead.
713 * @deprecated Use {@link #encodeNormValue} instead.
715 * @see #encodeNormValue(float)
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedIndexWriter.java211 Arrays.fill(norms, oldNorms.length, norms.length, similarity.encodeNormValue(1.0f));
213 Arrays.fill(norms, 0, norms.length, similarity.encodeNormValue(1.0f));
221 Arrays.fill(norms, 0, norms.length, similarity.encodeNormValue(1.0f));
250 normsByFieldNameAndDocumentNumber.get(eFieldTermDocInfoFactoriesByTermText.getKey().fieldName)[document.getDocumentNumber()] = similarity.encodeNormValue(norm);
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestMatchAllDocsQuery.java72 is.getIndexReader().setNorm(0, "key", is.getSimilarity().encodeNormValue(400f));
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestMatchAllDocsQuery.java72 is.getIndexReader().setNorm(0, "key", is.getSimilarity().encodeNormValue(400f));
/lucene-3.6.0/lucene/contrib/memory/src/java/org/apache/lucene/index/memory/
H A DMemoryIndex.java1090 byte norm = sim.encodeNormValue(n);

Completed in 89 milliseconds

12