Searched defs:norms (Results 1 - 25 of 27) sorted by relevance

12

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DNormsWriterPerField.java36 byte[] norms = new byte[1]; field in class:NormsWriterPerField
44 norms = ArrayUtil.shrink(norms, upto);
71 if (norms.length <= upto) {
72 assert norms.length == upto;
73 norms = ArrayUtil.grow(norms, 1+upto);
76 norms[upto] = docState.similarity.encodeNormValue(norm);
H A DMultiReader.java301 public synchronized byte[] norms(String field) throws IOException { method in class:MultiReader
311 subReaders[i].norms(field, bytes, starts[i]);
317 public synchronized void norms(String field, byte[] result, int offset) method in class:MultiReader
322 subReaders[i].norms(field, result, offset + starts[i]);
330 subReaders[i].norms(field, result, offset + starts[i]);
H A DFilterIndexReader.java212 public byte[] norms(String f) throws IOException { method in class:FilterIndexReader
214 return in.norms(f);
218 public void norms(String f, byte[] bytes, int offset) throws IOException { method in class:FilterIndexReader
220 in.norms(f, bytes, offset);
H A DParallelReader.java376 public byte[] norms(String field) throws IOException { method in class:ParallelReader
379 return reader==null ? null : reader.norms(field);
383 public void norms(String field, byte[] result, int offset) method in class:ParallelReader
388 reader.norms(field, result, offset);
H A DIndexReader.java263 * change norms) with the reader.
265 * @param readOnly true if no changes (deletions, norms) will be made with this IndexReader
313 * change norms) with the reader.
315 * @param readOnly true if no changes (deletions, norms) will be made with this IndexReader
331 * documents or change norms) with the reader.
335 * norms); see {@link IndexWriter} for details.
336 * @param readOnly true if no changes (deletions, norms) will be made with this IndexReader
352 * documents or change norms) with the reader.
356 * norms); see {@link IndexWriter} for details.
357 * @param readOnly true if no changes (deletions, norms) wil
1194 public abstract byte[] norms(String field) throws IOException; method in class:IndexReader
1201 public abstract void norms(String field, byte[] bytes, int offset) method in class:IndexReader
[all...]
H A DSegmentReader.java71 // optionally used for the .nrm file shared by multiple norms
87 Map<String,SegmentNorms> norms = new HashMap<String,SegmentNorms>(); field in class:SegmentReader
286 clone.norms = new HashMap<String,SegmentNorms>();
288 // Clone norms
291 // Clone unchanged norms to the cloned reader
294 SegmentNorms norm = this.norms.get(curField);
296 clone.norms.put(curField, (SegmentNorms) norm.clone());
301 // any norms that have changed:
307 // An exception occurred during reopen, we have to decRef the norms
365 if (normsDirty) { // re-write norms
568 public byte[] norms(String field) throws IOException { method in class:SegmentReader
594 public synchronized void norms(String field, byte[] bytes, int offset) method in class:SegmentReader
[all...]
H A DDirectoryReader.java258 // try to copy unchanged norms from the old normsCache to the new one
273 // this SegmentReader was not re-opened, we can copy all of its norms
276 || oldReaders[oldReaderIndex.intValue()].norms.get(field) == subReaders[i].norms.get(field))) {
278 // in which case no old norms cache is present, or it is called from MultiReader.reopen(),
282 subReaders[i].norms(field, bytes, starts[i]);
638 public synchronized byte[] norms(String field) throws IOException { method in class:DirectoryReader
648 subReaders[i].norms(field, bytes, starts[i]);
654 public synchronized void norms(String field, byte[] result, int offset) method in class:DirectoryReader
664 subReaders[i].norms(fiel
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DPhraseScorer.java33 protected byte[] norms; field in class:PhraseScorer
41 Similarity similarity, byte[] norms) {
43 this.norms = norms;
89 return norms == null ? raw : raw * getSimilarity().decodeNormValue(norms[max.doc]); // normalize
40 PhraseScorer(Weight weight, PhraseQuery.PostingsAndFreq[] postings, Similarity similarity, byte[] norms) argument
H A DTermScorer.java28 private final byte[] norms; field in class:TermScorer
51 * @param norms
52 * The field norms of the document fields for the <code>Term</code>.
54 TermScorer(Weight weight, TermDocs td, Similarity similarity, byte[] norms) { argument
58 this.norms = norms;
133 return norms == null ? raw : raw * getSimilarity().decodeNormValue(norms[doc]); // normalize for field
H A DExactPhraseScorer.java26 private final byte[] norms; field in class:ExactPhraseScorer
64 Similarity similarity, byte[] norms) throws IOException {
66 this.norms = norms;
234 return norms == null ? raw : raw * getSimilarity().decodeNormValue(norms[docID]); // normalize
63 ExactPhraseScorer(Weight weight, PhraseQuery.PostingsAndFreq[] postings, Similarity similarity, byte[] norms) argument
H A DMatchAllDocsQuery.java50 final byte[] norms; field in class:MatchAllDocsQuery.MatchAllScorer
54 byte[] norms) throws IOException {
58 this.norms = norms;
73 return norms == null ? score : score * getSimilarity().decodeNormValue(norms[docID()]);
121 normsField != null ? reader.norms(normsField) : null);
53 MatchAllScorer(IndexReader reader, Similarity similarity, Weight w, byte[] norms) argument
H A DSloppyPhraseScorer.java46 int slop, byte[] norms) throws IOException {
47 super(weight, postings, similarity, norms);
45 SloppyPhraseScorer(Weight weight, PhraseQuery.PostingsAndFreq[] postings, Similarity similarity, int slop, byte[] norms) argument
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/spans/
H A DSpanScorer.java32 protected byte[] norms; field in class:SpanScorer
40 protected SpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms) argument
44 this.norms = norms;
96 return norms == null? raw : raw * getSimilarity().decodeNormValue(norms[doc]); // normalize
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/payloads/
H A DPayloadTermQuery.java79 this, similarity, reader.norms(query.getField()));
101 Similarity similarity, byte[] norms) throws IOException {
102 super(spans, weight, similarity, norms);
100 PayloadTermSpanScorer(TermSpans spans, Weight weight, Similarity similarity, byte[] norms) argument
H A DPayloadNearQuery.java149 similarity, reader.norms(query.getField()));
160 Similarity similarity, byte[] norms) throws IOException {
161 super(spans, weight, similarity, norms);
159 PayloadNearSpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms) argument
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestIndexReaderCloneNorms.java38 * Tests cloning IndexReader norms
58 private ArrayList<Float> norms; field in class:TestIndexReaderCloneNorms
74 * Test that norms values are preserved as the index is maintained. Including
75 * separate norms. Including merging indexes with seprate norms. Including
83 norms = new ArrayList<Float>();
90 ArrayList<Float> norms1 = norms;
94 norms = new ArrayList<Float>();
120 norms1.addAll(norms);
121 norms
[all...]
H A DTestNorms.java37 * Test that norms info is preserved during index life - including
38 * separate norms, addDocument, addIndexes, forceMerge.
55 private ArrayList<Float> norms; field in class:TestNorms
68 * Test that norms values are preserved as the index is maintained.
69 * Including separate norms.
70 * Including merging indexes with seprate norms.
76 norms = new ArrayList<Float>();
83 ArrayList<Float> norms1 = norms;
87 norms = new ArrayList<Float>();
107 norms1.addAll(norms);
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/spans/
H A DJustCompileSearchSpans.java138 Similarity similarity, byte[] norms) throws IOException {
139 super(spans, weight, similarity, norms);
137 JustCompileSpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms) argument
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestIndexReaderCloneNorms.java38 * Tests cloning IndexReader norms
58 private ArrayList<Float> norms; field in class:TestIndexReaderCloneNorms
74 * Test that norms values are preserved as the index is maintained. Including
75 * separate norms. Including merging indexes with seprate norms. Including
83 norms = new ArrayList<Float>();
90 ArrayList<Float> norms1 = norms;
94 norms = new ArrayList<Float>();
120 norms1.addAll(norms);
121 norms
[all...]
H A DTestNorms.java37 * Test that norms info is preserved during index life - including
38 * separate norms, addDocument, addIndexes, forceMerge.
55 private ArrayList<Float> norms; field in class:TestNorms
68 * Test that norms values are preserved as the index is maintained.
69 * Including separate norms.
70 * Including merging indexes with seprate norms.
76 norms = new ArrayList<Float>();
83 ArrayList<Float> norms1 = norms;
87 norms = new ArrayList<Float>();
107 norms1.addAll(norms);
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/spans/
H A DJustCompileSearchSpans.java138 Similarity similarity, byte[] norms) throws IOException {
139 super(spans, weight, similarity, norms);
137 JustCompileSpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms) argument
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedIndexReader.java177 // 1. update norms
180 byte[] norms = getIndex().getNormsByFieldNameAndDocumentNumber().get(e.getKey());
182 norms[normUpdate.doc] = normUpdate.value;
248 * never ever touch these values. it is the true values, unless norms have
252 public byte[] norms(String field) throws IOException { method in class:InstantiatedIndexReader
253 byte[] norms = getIndex().getNormsByFieldNameAndDocumentNumber().get(field);
254 if (norms == null) {
258 norms = norms.clone();
262 norms[normUpdat
270 public void norms(String field, byte[] bytes, int offset) throws IOException { method in class:InstantiatedIndexReader
[all...]
/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/index/
H A DIndexSorter.java215 public byte[] norms(String f) throws IOException { method in class:IndexSorter.SortingReader
220 public void norms(String f, byte[] norms, int offset) throws IOException { argument
221 byte[] oldNorms = super.norms(f);
226 norms[newDoc] = oldNorms[oldDoc];
/lucene-3.6.0/lucene/contrib/memory/src/java/org/apache/lucene/index/memory/
H A DMemoryIndex.java1074 /** performance hack: cache norms to avoid repeated expensive calculations */
1080 public byte[] norms(String fieldName) { method in class:MemoryIndex.MemoryIndexReader
1081 byte[] norms = cachedNorms;
1091 norms = new byte[] {norm};
1094 cachedNorms = norms;
1097 if (DEBUG) System.err.println("MemoryIndexReader.norms: " + fieldName + ":" + n + ":" + norm + ":" + numTokens);
1099 return norms;
1103 public void norms(String fieldName, byte[] bytes, int offset) { method in class:MemoryIndex.MemoryIndexReader
1104 if (DEBUG) System.err.println("MemoryIndexReader.norms*: " + fieldName);
1105 byte[] norms
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DSolrIndexReader.java281 public byte[] norms(String f) throws IOException { method in class:SolrIndexReader
282 return in.norms(f);
286 public void norms(String f, byte[] bytes, int offset) throws IOException { method in class:SolrIndexReader
287 in.norms(f, bytes, offset);

Completed in 133 milliseconds

12