Searched refs:sumOfSquaredWeights (Results 1 - 25 of 42) sorted by relevance

12

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DDefaultSimilarity.java43 /** Implemented as <code>1/sqrt(sumOfSquaredWeights)</code>. */
45 public float queryNorm(float sumOfSquaredWeights) { argument
46 return (float)(1.0 / Math.sqrt(sumOfSquaredWeights));
H A DWeight.java38 * <li>The {@link #sumOfSquaredWeights()} method is called on the
103 public abstract float sumOfSquaredWeights() throws IOException; method in class:Weight
H A DSimilarityDelegator.java46 public float queryNorm(float sumOfSquaredWeights) { argument
47 return delegee.queryNorm(sumOfSquaredWeights);
H A DMatchAllDocsQuery.java107 public float sumOfSquaredWeights() { method in class:MatchAllDocsQuery.MatchAllDocsWeight
H A DConstantScoreQuery.java119 public float sumOfSquaredWeights() throws IOException { method in class:ConstantScoreQuery.ConstantWeight
120 // we calculate sumOfSquaredWeights of the inner weight, but ignore it (just to initialize everything)
121 if (innerWeight != null) innerWeight.sumOfSquaredWeights();
H A DDisjunctionMaxQuery.java121 public float sumOfSquaredWeights() throws IOException { method in class:DisjunctionMaxQuery.DisjunctionMaxWeight
124 float sub = currentWeight.sumOfSquaredWeights();
H A DFilteredQuery.java77 public float sumOfSquaredWeights() throws IOException {
78 return weight.sumOfSquaredWeights() * getBoost() * getBoost(); // boost sub-weight
H A DSearcher.java169 float sum = weight.sumOfSquaredWeights();
H A DSimilarity.java388 * {@link org.apache.lucene.search.DefaultSimilarity#queryNorm(float) queryNorm(sumOfSquaredWeights)}
397 * <tr><td align="center" style="text-align: center">sumOfSquaredWeights<sup><big>&frac12;</big></sup></td></tr>
413 * {@link org.apache.lucene.search.Weight#sumOfSquaredWeights() sumOfSquaredWeights} &nbsp; = &nbsp;
675 * computed as 1/sqrt(sumOfSquaredWeights), other implementations might
676 * completely ignore sumOfSquaredWeights (ie return 1).
682 * @param sumOfSquaredWeights the sum of the squares of query term weights
685 public abstract float queryNorm(float sumOfSquaredWeights); argument
H A DBooleanQuery.java188 public float sumOfSquaredWeights() throws IOException { method in class:BooleanQuery.BooleanWeight
191 // call sumOfSquaredWeights for all clauses in case of side effects
192 float s = weights.get(i).sumOfSquaredWeights(); // sum sub weights
H A DTermQuery.java83 public float sumOfSquaredWeights() { method in class:TermQuery.TermWeight
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/search/
H A DAssertingIndexSearcher.java84 public float sumOfSquaredWeights() throws IOException { method in class:AssertingIndexSearcher.UnmodifiableWeight
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/search/
H A DAssertingIndexSearcher.java84 public float sumOfSquaredWeights() throws IOException { method in class:AssertingIndexSearcher.UnmodifiableWeight
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/function/
H A DCustomScoreQuery.java212 /*(non-Javadoc) @see org.apache.lucene.search.Weight#sumOfSquaredWeights() */
214 public float sumOfSquaredWeights() throws IOException { method in class:CustomScoreQuery.CustomWeight
215 float sum = subQueryWeight.sumOfSquaredWeights();
218 valSrcWeights[i].sumOfSquaredWeights(); // do not include ValueSource part in the query normalization
220 sum += valSrcWeights[i].sumOfSquaredWeights();
H A DValueSourceQuery.java86 /*(non-Javadoc) @see org.apache.lucene.search.Weight#sumOfSquaredWeights() */
88 public float sumOfSquaredWeights() throws IOException { method in class:ValueSourceQuery.ValueSourceWeight
/lucene-3.6.0/lucene/contrib/join/src/java/org/apache/lucene/search/join/
H A DToChildBlockJoinQuery.java120 public float sumOfSquaredWeights() throws IOException { method in class:ToChildBlockJoinQuery.ToChildBlockJoinWeight
121 return parentWeight.sumOfSquaredWeights() * joinQuery.getBoost() * joinQuery.getBoost();
H A DToParentBlockJoinQuery.java180 public float sumOfSquaredWeights() throws IOException { method in class:ToParentBlockJoinQuery.BlockJoinWeight
181 return childWeight.sumOfSquaredWeights() * joinQuery.getBoost() * joinQuery.getBoost();
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/function/
H A DBoostedQuery.java86 public float sumOfSquaredWeights() throws IOException { method in class:BoostedQuery.BoostedWeight
87 float sum = qWeight.sumOfSquaredWeights();
H A DFunctionQuery.java83 public float sumOfSquaredWeights() throws IOException { method in class:FunctionQuery.FunctionWeight
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/spans/
H A DSpanWeight.java62 public float sumOfSquaredWeights() throws IOException { method in class:SpanWeight
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestConstantScoreQuery.java101 public float queryNorm(float sumOfSquaredWeights) {
H A DJustCompileSearch.java393 public float queryNorm(float sumOfSquaredWeights) { argument
489 public float sumOfSquaredWeights() throws IOException { method in class:JustCompileSearch.JustCompileWeight
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestConstantScoreQuery.java101 public float queryNorm(float sumOfSquaredWeights) {
H A DJustCompileSearch.java393 public float queryNorm(float sumOfSquaredWeights) { argument
489 public float sumOfSquaredWeights() throws IOException { method in class:JustCompileSearch.JustCompileWeight
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DSolrConstantScoreQuery.java109 public float sumOfSquaredWeights() throws IOException { method in class:SolrConstantScoreQuery.ConstantWeight

Completed in 89 milliseconds

12