/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 | 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 | 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 | 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 | 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 | 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 | 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 | 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);
|
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 | TermScorer.java | 48 * @param similarity 54 TermScorer(Weight weight, TermDocs td, Similarity similarity, byte[] norms) { argument 55 super(similarity, weight);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/ |
H A D | DocumentsWriterThreadState.java | 40 docState.similarity = docWriter.similarity;
|
H A D | IndexWriterConfig.java | 117 private volatile Similarity similarity; field in class:IndexWriterConfig 151 similarity = Similarity.getDefault(); 253 * <b>NOTE:</b> the similarity cannot be null. If <code>null</code> is passed, 254 * the similarity will be set to the default. 259 public IndexWriterConfig setSimilarity(Similarity similarity) { argument 260 this.similarity = similarity == null ? Similarity.getDefault() : similarity; 270 return similarity; 609 sb.append("similarity [all...] |
H A D | NormsWriterPerField.java | 75 final float norm = docState.similarity.computeNorm(fieldInfo.name, fieldState); 76 norms[upto] = docState.similarity.encodeNormValue(norm);
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/ |
H A D | SolrConstantScoreQuery.java | 86 private Similarity similarity; field in class:SolrConstantScoreQuery.ConstantWeight 92 this.similarity = getSimilarity(searcher); 122 return new ConstantScorer(similarity, reader, this); 128 ConstantScorer cs = new ConstantScorer(similarity, reader, this); 155 public ConstantScorer(Similarity similarity, IndexReader reader, ConstantWeight w) throws IOException { argument 156 super(similarity, w);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/function/ |
H A D | ValueSourceQuery.java | 66 Similarity similarity; field in class:ValueSourceQuery.ValueSourceWeight 71 this.similarity = getSimilarity(searcher); 102 return new ValueSourceScorer(similarity, reader, this); 134 private ValueSourceScorer(Similarity similarity, IndexReader reader, ValueSourceWeight w) throws IOException { argument 135 super(similarity,w);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/spans/ |
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;
|
H A D | SpanScorer.java | 40 protected SpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms) argument 42 super(similarity, weight);
|
/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/core/src/java/org/apache/lucene/search/payloads/ |
H A D | PayloadNearQuery.java | 149 similarity, reader.norms(query.getField())); 157 Similarity similarity = getSimilarity(); field in class:PayloadNearQuery.PayloadNearSpanScorer 160 Similarity similarity, byte[] norms) throws IOException { 161 super(spans, weight, similarity, norms); 197 payloadsSeen, payloadScore, similarity.scorePayload(doc, fieldName, 159 PayloadNearSpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms) argument
|
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/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/solr/core/src/test/org/apache/solr/schema/ |
H A D | IndexSchemaTest.java | 86 Similarity similarity = core.getSchema().getSimilarity(); 87 assertTrue("wrong class", similarity instanceof MockConfigurableSimilarity); 88 assertEquals("is there an echo?", ((MockConfigurableSimilarity)similarity).getPassthrough());
|