/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ |
H A D | FuzzyQueryNode.java | 24 * field/text/similarity tuple 30 private float similarity; field in class:FuzzyQueryNode 46 * - similarity value 55 this.similarity = minSimilarity; 70 return getTermEscaped(escaper) + "~" + this.similarity; 72 return this.field + ":" + getTermEscaped(escaper) + "~" + this.similarity; 78 return "<fuzzy field='" + this.field + "' similarity='" + this.similarity 82 public void setSimilarity(float similarity) { argument 83 this.similarity [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
H A D | DisjunctionMaxScorer.java | 48 * @param similarity 58 Similarity similarity, Scorer[] subScorers, int numScorers) throws IOException { 59 super(similarity, weight); 57 DisjunctionMaxScorer(Weight weight, float tieBreakerMultiplier, Similarity similarity, Scorer[] subScorers, int numScorers) argument
|
H A D | FilteredQuery.java | 64 final Similarity similarity = query.getSimilarity(searcher); 117 return FilteredQuery.getFilteredScorer(indexReader, similarity, weight, this, filter); 126 * @param similarity the Similarity to use (deprecated) 132 static Scorer getFilteredScorer(final IndexReader indexReader, final Similarity similarity, argument 150 return (scorer == null) ? null : new Scorer(similarity, wrapperWeight) {
|
H A D | FuzzyTermEnum.java | 34 * every time similarity is called. 39 private float similarity; field in class:FuzzyTermEnum 83 * length <code>prefixLength</code> with <code>term</code> and which have a fuzzy similarity > 91 * @param minSimilarity Minimum required similarity for terms from the reader. Default value is 0.5f. 132 this.similarity = similarity(target); 133 return (similarity > minimumSimilarity); 142 return (similarity - minimumSimilarity) * scale_factor; 177 * similarity comparison. This formula was derived by solving for what maximum value 180 * similarity 192 private float similarity(final String target) { method in class:FuzzyTermEnum [all...] |
H A D | PhraseScorer.java | 41 Similarity similarity, byte[] norms) { 42 super(similarity, weight); 40 PhraseScorer(Weight weight, PhraseQuery.PostingsAndFreq[] postings, Similarity similarity, byte[] norms) argument
|
H A D | Scorer.java | 43 private final Similarity similarity; field in class:Scorer 55 * @param similarity The <code>Similarity</code> implementation used by this scorer. 59 protected Scorer(Similarity similarity) { argument 60 this(similarity, null); 65 * @param similarity The <code>Similarity</code> implementation used by this scorer. 70 protected Scorer(Similarity similarity, Weight weight) { argument 71 this.similarity = similarity; 80 return this.similarity;
|
H A D | TermScorer.java | 48 * @param similarity 54 TermScorer(Weight weight, TermDocs td, Similarity similarity, byte[] norms) { argument 55 super(similarity, weight);
|
H A D | DisjunctionMaxQuery.java | 98 protected Similarity similarity; field in class:DisjunctionMaxQuery.DisjunctionMaxWeight 105 this.similarity = searcher.getSimilarity(); 155 DisjunctionMaxScorer result = new DisjunctionMaxScorer(this, tieBreakerMultiplier, similarity, scorers, idx);
|
H A D | ExactPhraseScorer.java | 64 Similarity similarity, byte[] norms) throws IOException { 65 super(similarity, weight); 63 ExactPhraseScorer(Weight weight, PhraseQuery.PostingsAndFreq[] postings, Similarity similarity, byte[] norms) argument
|
H A D | MatchAllDocsQuery.java | 53 MatchAllScorer(IndexReader reader, Similarity similarity, Weight w, argument 55 super(similarity,w); 83 private Similarity similarity; field in class:MatchAllDocsQuery.MatchAllDocsWeight 88 this.similarity = searcher.getSimilarity(); 120 return new MatchAllScorer(reader, similarity, this,
|
H A D | Searcher.java | 141 private Similarity similarity = Similarity.getDefault(); field in class:Searcher 147 public void setSimilarity(Similarity similarity) { argument 148 this.similarity = similarity; 156 return this.similarity;
|
H A D | TermQuery.java | 38 private final Similarity similarity; field in class:TermQuery.TermWeight 48 this.similarity = getSimilarity(searcher); 64 idfExp = similarity.idfExplain(term, searcher, dfSum[0]); 66 idfExp = similarity.idfExplain(term, searcher); 107 return new TermScorer(this, termDocs, similarity, reader.norms(term.field())); 154 tfExplanation.setValue(similarity.tf(tf)); 166 fieldNorms!=null ? similarity.decodeNormValue(fieldNorms[doc]) : 1.0f;
|
H A D | BooleanQuery.java | 164 protected Similarity similarity; field in class:BooleanQuery.BooleanWeight 171 this.similarity = getSimilarity(searcher); 275 final float coordFactor = disableCoord ? 1.0f : similarity.coord(coord, maxCoord); 314 return new BooleanScorer(this, disableCoord, similarity, minNrShouldMatch, optional, prohibited, maxCoord); 328 return new BooleanScorer2(this, disableCoord, similarity, minNrShouldMatch, required, prohibited, optional, maxCoord);
|
H A D | BooleanScorer.java | 206 BooleanScorer(Weight weight, boolean disableCoord, Similarity similarity, int minNrShouldMatch, argument 229 coordFactors[i] = disableCoord ? 1.0f : similarity.coord(i, maxCoord);
|
H A D | BooleanScorer2.java | 66 * Creates a {@link Scorer} with the given similarity and lists of required, 86 public BooleanScorer2(Weight weight, boolean disableCoord, Similarity similarity, int minNrShouldMatch, argument 100 coordinator.init(similarity, disableCoord); 101 countingSumScorer = makeCountingSumScorer(disableCoord, similarity); 169 Similarity similarity, 173 return new ConjunctionScorer(weight, disableCoord ? 1.0f : similarity.coord(requiredScorers.size(), requiredScorers.size()), requiredScorers) { 197 Similarity similarity, 199 return new ConjunctionScorer(weight, disableCoord ? 1.0f : similarity.coord(2, 2), req1, req2); 210 Similarity similarity) throws IOException { // each scorer counted as a single matcher 212 ? makeCountingSumScorerNoReq(disableCoord, similarity) 168 countingConjunctionSumScorer(boolean disableCoord, Similarity similarity, List<Scorer> requiredScorers) argument 196 dualConjunctionSumScorer(boolean disableCoord, Similarity similarity, Scorer req1, Scorer req2) argument 209 makeCountingSumScorer(boolean disableCoord, Similarity similarity) argument 216 makeCountingSumScorerNoReq(boolean disableCoord, Similarity similarity) argument 230 makeCountingSumScorerSomeReq(boolean disableCoord, Similarity similarity) argument [all...] |
H A D | ConstantScoreQuery.java | 99 private final Similarity similarity; field in class:ConstantScoreQuery.ConstantWeight 104 this.similarity = getSimilarity(searcher); 150 return new ConstantScorer(similarity, disi, this); 183 public ConstantScorer(Similarity similarity, DocIdSetIterator docIdSetIterator, Weight w) throws IOException { argument 184 super(similarity,w);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/spans/ |
H A D | SpanScorer.java | 40 protected SpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms) argument 42 super(similarity, weight);
|
H A D | SpanWeight.java | 33 protected Similarity similarity; field in class:SpanWeight 45 this.similarity = query.getSimilarity(searcher); 51 idfExp = similarity.idfExplain(terms, searcher); 79 return new SpanScorer(query.getSpans(reader), this, similarity, reader 125 fieldNorms!=null ? similarity.decodeNormValue(fieldNorms[doc]) : 1.0f;
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/payloads/ |
H A D | PayloadHelper.java | 109 * @param similarity The Similarity class to use in the Searcher 115 public IndexSearcher setUp(Random random, Similarity similarity, int numDocs) throws IOException { argument 119 TEST_VERSION_CURRENT, analyzer).setSimilarity(similarity)); 132 searcher.setSimilarity(similarity);
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/payloads/ |
H A D | PayloadHelper.java | 109 * @param similarity The Similarity class to use in the Searcher 115 public IndexSearcher setUp(Random random, Similarity similarity, int numDocs) throws IOException { argument 119 TEST_VERSION_CURRENT, analyzer).setSimilarity(similarity)); 132 searcher.setSimilarity(similarity);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/payloads/ |
H A D | PayloadTermQuery.java | 79 this, similarity, reader.norms(query.getField())); 101 Similarity similarity, byte[] norms) throws IOException { 102 super(spans, weight, similarity, norms); 128 protected void processPayload(Similarity similarity) throws IOException { argument 133 similarity.scorePayload(doc, term.field(), spans.start(), spans 100 PayloadTermSpanScorer(TermSpans spans, Weight weight, Similarity similarity, byte[] norms) argument
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/spans/ |
H A D | JustCompileSearchSpans.java | 138 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/search/spans/ |
H A D | JustCompileSearchSpans.java | 138 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 D | InstantiatedIndexWriter.java | 77 private Similarity similarity = Similarity.getDefault(); // how to normalize; field in class:InstantiatedIndexWriter 211 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)); 249 final float norm = similarity.computeNorm(eFieldTermDocInfoFactoriesByTermText.getKey().fieldName, invertState); 250 normsByFieldNameAndDocumentNumber.get(eFieldTermDocInfoFactoriesByTermText.getKey().fieldName)[document.getDocumentNumber()] = similarity.encodeNormValue(norm); 687 return similarity; 690 public void setSimilarity(Similarity similarity) { argument 691 this.similarity = similarity; [all...] |
/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/ |
H A D | FuzzyLikeThisQuery.java | 119 public FieldVals(String name, float similarity, int length, String queryString) argument 122 minSimilarity = similarity; 175 * @param minSimilarity The minimum similarity of the term variants (see FuzzyTermEnum)
|