Searched refs:getSimilarity (Results 1 - 25 of 57) sorted by relevance

123

/lucene-3.6.0/solr/core/src/test/org/apache/solr/schema/
H A DCustomSimilarityFactory.java23 public Similarity getSimilarity() { method in class:CustomSimilarityFactory
H A DIndexSchemaTest.java86 Similarity similarity = core.getSchema().getSimilarity();
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DScoreCachingWrappingScorer.java41 super(scorer.getSimilarity(), scorer.weight);
51 public Similarity getSimilarity() { method in class:ScoreCachingWrappingScorer
52 return scorer.getSimilarity();
H A DTermScorer.java62 scoreCache[i] = getSimilarity().tf(i) * weightValue;
131 : getSimilarity().tf(freq)*weightValue; // cache miss
133 return norms == null ? raw : raw * getSimilarity().decodeNormValue(norms[doc]); // normalize for field
H A DPhraseScorer.java88 float raw = getSimilarity().tf(freq) * value; // raw score
89 return norms == null ? raw : raw * getSimilarity().decodeNormValue(norms[max.doc]); // normalize
H A DMatchAllDocsQuery.java73 return norms == null ? score : score * getSimilarity().decodeNormValue(norms[docID()]);
88 this.similarity = searcher.getSimilarity();
H A DQuery.java204 public Similarity getSimilarity(Searcher searcher) { method in class:Query
205 return searcher.getSimilarity();
H A DSearcher.java155 public Similarity getSimilarity() { method in class:Searcher
171 float norm = query.getSimilarity(this).queryNorm(sum);
H A DScorer.java79 public Similarity getSimilarity() { method in class:Scorer
H A DExactPhraseScorer.java90 scoreCache[i] = getSimilarity().tf((float) i) * value;
232 raw = getSimilarity().tf((float) freq) * value;
234 return norms == null ? raw : raw * getSimilarity().decodeNormValue(norms[docID]); // normalize
H A DConstantScoreQuery.java104 this.similarity = getSimilarity(searcher);
214 collector.setScorer(new ConstantScorer(ConstantScorer.this.getSimilarity(),
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/
H A DSimilarityFactory.java28 public abstract Similarity getSimilarity(); method in class:SimilarityFactory
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/spans/
H A DSpanScorer.java84 freq += getSimilarity().sloppyFreq(matchLength);
95 float raw = getSimilarity().tf(freq) * value; // raw score
96 return norms == null? raw : raw * getSimilarity().decodeNormValue(norms[doc]); // normalize
112 tfExplanation.setValue(getSimilarity().tf(phraseFreq));
H A DSpanWeight.java45 this.similarity = query.getSimilarity(searcher);
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/
H A DFuzzyQueryNodeProcessor.java64 if (fuzzyNode.getSimilarity() < 0) {
68 } else if (fuzzyNode.getSimilarity() < 0) {
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/
H A DFuzzyQueryNode.java98 public float getSimilarity() { method in class:FuzzyQueryNode
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/
H A DFuzzyQueryNodeBuilder.java39 .getTextAsString()), fuzzyNode.getSimilarity(), fuzzyNode
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestIndexWriterConfig.java71 assertTrue(Similarity.getDefault() == conf.getSimilarity());
92 getters.add("getSimilarity");
188 assertTrue(Similarity.getDefault() == conf.getSimilarity());
190 assertEquals(MySimilarity.class, conf.getSimilarity().getClass());
192 assertTrue(Similarity.getDefault() == conf.getSimilarity());
280 assertEquals(MySimilarity.class, writer.getConfig().getSimilarity().getClass());
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestIndexWriterConfig.java71 assertTrue(Similarity.getDefault() == conf.getSimilarity());
92 getters.add("getSimilarity");
188 assertTrue(Similarity.getDefault() == conf.getSimilarity());
190 assertEquals(MySimilarity.class, conf.getSimilarity().getClass());
192 assertTrue(Similarity.getDefault() == conf.getSimilarity());
280 assertEquals(MySimilarity.class, writer.getConfig().getSimilarity().getClass());
/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/
H A DBoostingQuery.java61 public Similarity getSimilarity(Searcher searcher) {
H A DFuzzyLikeThisQuery.java364 public Similarity getSimilarity(Searcher searcher) method in class:FuzzyLikeThisQuery.FuzzyTermQuery
366 Similarity result = super.getSimilarity(searcher);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/payloads/
H A DPayloadNearQuery.java157 Similarity similarity = getSimilarity();
215 freq += getSimilarity().sloppyFreq(matchLength);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/function/
H A DValueSourceQuery.java71 this.similarity = getSimilarity(searcher);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DSolrConstantScoreQuery.java92 this.similarity = getSimilarity(searcher);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/function/
H A DFunctionQuery.java96 return new AllScorer(getSimilarity(searcher), reader, this);

Completed in 1535 milliseconds

123