Searched refs:norm (Results 1 - 25 of 34) sorted by relevance

12

/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/fr/
H A DFrenchLightStemmer.java82 return norm(s, len);
88 return norm(s, len);
97 return norm(s, len);
104 return norm(s, len);
111 return norm(s, len);
120 return norm(s, len);
129 return norm(s, len);
136 return norm(s, len);
143 return norm(s, len);
154 return norm(
230 private int norm(char s[], int len) { method in class:FrenchLightStemmer
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DWeight.java68 public abstract void normalize(float norm); argument
H A DSearcher.java171 float norm = query.getSimilarity(this).queryNorm(sum);
172 if (Float.isInfinite(norm) || Float.isNaN(norm))
173 norm = 1.0f;
174 weight.normalize(norm);
H A DConstantScoreQuery.java127 public void normalize(float norm) { argument
128 this.queryNorm = norm;
131 if (innerWeight != null) innerWeight.normalize(norm);
H A DDisjunctionMaxQuery.java135 public void normalize(float norm) { argument
136 norm *= getBoost(); // Incorporate our boost
138 wt.normalize(norm);
H A DBooleanQuery.java205 public void normalize(float norm) { argument
206 norm *= getBoost(); // incorporate boost
209 w.normalize(norm);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DSegmentReader.java171 * Clones the norm bytes. May be overridden by subclasses. New and experimental.
294 SegmentNorms norm = this.norms.get(curField);
295 if (norm != null)
296 clone.norms.put(curField, (SegmentNorms) norm.clone());
367 for (final SegmentNorms norm : norms.values()) {
368 if (norm.dirty) {
369 norm.reWrite(si);
393 for (final SegmentNorms norm : norms.values()) {
394 norm.decRef();
570 final SegmentNorms norm
[all...]
H A DNormsWriterPerField.java26 * and record the norm. */
34 // Holds all docID/norm pairs we've seen
75 final float norm = docState.similarity.computeNorm(fieldInfo.name, fieldState);
76 norms[upto] = docState.similarity.encodeNormValue(norm);
H A DLogMergePolicy.java501 final float norm = (float) Math.log(mergeFactor);
514 final SegmentInfoAndLevel infoLevel = new SegmentInfoAndLevel(info, (float) Math.log(size)/norm, i);
531 levelFloor = (float) (Math.log(minMergeSize)/norm);
/lucene-3.6.0/lucene/contrib/spatial/src/java/org/apache/lucene/spatial/geometry/shape/
H A DLineSegment.java69 return w.norm();
77 return new Vector2D(B, P).norm();
84 return new Vector2D(closestPt, P).norm();
H A DVector2D.java110 public double norm() { method in class:Vector2D
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestNorms.java45 // Disable length norm
179 float norm = similarityOne.decodeNormValue(b[j]);
181 assertEquals("stored norm value of "+field+" for doc "+j+" is "+norm+" - a mismatch!", norm, norm1, 0.000001);
212 // return unique norm values that are unchanged by encoding/decoding
214 float norm = lastNorm + normDelta;
216 float norm1 = similarityOne.decodeNormValue(similarityOne.encodeNormValue(norm));
219 norm = norm1;
222 norm
[all...]
H A DTestIndexReaderCloneNorms.java45 // diable length norm
198 // edit a norm and the refcount should be 1
212 // norm values should be different
275 float norm = Similarity.getDefault().decodeNormValue(b[j]);
277 assertEquals("stored norm value of " + field + " for doc " + j + " is "
278 + norm + " - a mismatch!", norm, norm1, 0.000001);
310 // return unique norm values that are unchanged by encoding/decoding
312 float norm = lastNorm + normDelta;
315 Similarity.getDefault().encodeNormValue(norm));
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestNorms.java45 // Disable length norm
179 float norm = similarityOne.decodeNormValue(b[j]);
181 assertEquals("stored norm value of "+field+" for doc "+j+" is "+norm+" - a mismatch!", norm, norm1, 0.000001);
212 // return unique norm values that are unchanged by encoding/decoding
214 float norm = lastNorm + normDelta;
216 float norm1 = similarityOne.decodeNormValue(similarityOne.encodeNormValue(norm));
219 norm = norm1;
222 norm
[all...]
H A DTestIndexReaderCloneNorms.java45 // diable length norm
198 // edit a norm and the refcount should be 1
212 // norm values should be different
275 float norm = Similarity.getDefault().decodeNormValue(b[j]);
277 assertEquals("stored norm value of " + field + " for doc " + j + " is "
278 + norm + " - a mismatch!", norm, norm1, 0.000001);
310 // return unique norm values that are unchanged by encoding/decoding
312 float norm = lastNorm + normDelta;
315 Similarity.getDefault().encodeNormValue(norm));
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/cjk/
H A DTestCJKAnalyzer.java206 final NormalizeCharMap norm = new NormalizeCharMap();
207 norm.add("a", "一二");
208 norm.add("b", "二三");
218 return new MappingCharFilter(norm, CharReader.get(reader));
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/search/
H A DAssertingIndexSearcher.java63 public void normalize(float norm) { argument
/lucene-3.6.0/solr/core/src/java/org/apache/solr/core/
H A DRequestHandlers.java105 String norm = normalize( handlerName );
107 return handlers.remove( norm );
109 SolrRequestHandler old = handlers.put(norm, handler);
110 if (0 != norm.length() && handler instanceof SolrInfoMBean) {
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/search/
H A DAssertingIndexSearcher.java63 public void normalize(float norm) { argument
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/function/
H A DValueSourceQuery.java95 public void normalize(float norm) { argument
96 this.queryNorm = norm;
H A DCustomScoreQuery.java229 public void normalize(float norm) { argument
230 norm *= getBoost(); // incorporate boost
231 subQueryWeight.normalize(norm);
236 valSrcWeights[i].normalize(norm);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DSolrConstantScoreQuery.java115 public void normalize(float norm) { argument
116 this.queryNorm = norm;
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/function/
H A DFunctionQuery.java89 public void normalize(float norm) { argument
90 this.queryNorm = norm;
H A DBoostedQuery.java93 public void normalize(float norm) { argument
94 norm *= getBoost();
95 qWeight.normalize(norm);
/lucene-3.6.0/lucene/contrib/join/src/java/org/apache/lucene/search/join/
H A DToChildBlockJoinQuery.java125 public void normalize(float norm) { argument
126 parentWeight.normalize(norm * joinQuery.getBoost());

Completed in 170 milliseconds

12