Searched refs:scorer (Results 1 - 25 of 117) sorted by relevance

12345

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DScoreCachingWrappingScorer.java23 * A {@link Scorer} which wraps another scorer and caches the score of the
35 private final Scorer scorer; field in class:ScoreCachingWrappingScorer
39 /** Creates a new instance by wrapping the given scorer. */
40 public ScoreCachingWrappingScorer(Scorer scorer) { argument
41 super(scorer.getSimilarity(), scorer.weight);
42 this.scorer = scorer;
47 return scorer.score(collector, max, firstDocID);
52 return scorer
[all...]
H A DPositiveScoresOnlyCollector.java32 private Scorer scorer; field in class:PositiveScoresOnlyCollector
40 if (scorer.score() > 0) {
51 public void setScorer(Scorer scorer) throws IOException { argument
54 this.scorer = new ScoreCachingWrappingScorer(scorer);
55 c.setScorer(this.scorer);
H A DBooleanScorer.java44 * scorers. But it works well as a top-level scorer.
64 private Scorer scorer; field in class:BooleanScorer.BooleanScorerCollector
79 bucket.score = scorer.score(); // initialize score
86 bucket.score += scorer.score(); // increment score
98 public void setScorer(Scorer scorer) throws IOException { argument
99 this.scorer = scorer;
111 // and implementations that need the score will call scorer.score().
173 public Scorer scorer; field in class:BooleanScorer.SubScorer
180 public SubScorer(Scorer scorer, boolea argument
[all...]
H A DCollector.java88 * <em>// ignore scorer</em>
89 * public void setScorer(Scorer scorer) {
129 * scorer.score() when needed.
131 public abstract void setScorer(Scorer scorer) throws IOException; argument
H A DTotalHitCountCollector.java35 public void setScorer(Scorer scorer) { argument
H A DTopFieldCollector.java99 public void setScorer(Scorer scorer) throws IOException { argument
100 comparator.setScorer(scorer);
158 Scorer scorer; field in class:TopFieldCollector.OneComparatorScoringNoMaxScoreCollector
183 final float score = scorer.score();
191 final float score = scorer.score();
205 public void setScorer(Scorer scorer) throws IOException { argument
206 this.scorer = scorer;
207 comparator.setScorer(scorer);
237 final float score = scorer
272 Scorer scorer; field in class:TopFieldCollector.OneComparatorScoringMaxScoreCollector
320 setScorer(Scorer scorer) argument
454 setScorer(Scorer scorer) argument
537 Scorer scorer; field in class:TopFieldCollector.MultiComparatorScoringMaxScoreCollector
604 setScorer(Scorer scorer) argument
689 Scorer scorer; field in class:TopFieldCollector.MultiComparatorScoringNoMaxScoreCollector
755 setScorer(Scorer scorer) argument
830 setScorer(Scorer scorer) argument
[all...]
H A DWeight.java44 * <li>A <code>Scorer</code> is constructed by {@link #scorer(IndexReader,boolean,boolean)}.
88 * in-order scorer is also an out-of-order one. However, an
89 * out-of-order scorer may not support {@link Scorer#nextDoc()}
91 * request an in-order scorer if use of these methods is required.
99 public abstract Scorer scorer(IndexReader reader, boolean scoreDocsInOrder, method in class:Weight
109 * {@link #scorer(org.apache.lucene.index.IndexReader, boolean, boolean)} to
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DScorerDocQueue.java39 Scorer scorer; field in class:ScorerDocQueue.HeapedScorerDoc
44 HeapedScorerDoc(Scorer scorer, int doc) { argument
45 this.scorer = scorer;
49 void adjust() { doc = scorer.docID(); }
69 public final void put(Scorer scorer) { argument
71 heap[size] = new HeapedScorerDoc(scorer);
77 * the ScorerDocQueue is not full, or not lessThan(scorer, top()).
78 * @param scorer
79 * @return true if scorer i
81 insert(Scorer scorer) argument
[all...]
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/search/
H A DAssertingIndexSearcher.java68 public Scorer scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer) throws IOException { method in class:AssertingIndexSearcher.UnmodifiableWeight
69 Scorer scorer = w.scorer(reader, scoreDocsInOrder, topScorer);
70 if (scorer != null) {
71 // check that scorer obeys disi contract for docID() before next()/advance
73 int docid = scorer.docID();
80 return scorer;
H A DQueryUtils.java261 /** alternate scorer skipTo(),skipTo(),next(),next(),skipTo(),skipTo(), etc
289 // FUTURE: ensure scorer.doc()==-1
297 private Scorer scorer;
300 public void setScorer(Scorer scorer) throws IOException {
301 this.sc = scorer;
309 if (scorer == null) {
311 scorer = w.scorer(reader, true, false);
317 boolean more = op == skip_op ? scorer.advance(scorer
[all...]
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/search/
H A DAssertingIndexSearcher.java68 public Scorer scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer) throws IOException { method in class:AssertingIndexSearcher.UnmodifiableWeight
69 Scorer scorer = w.scorer(reader, scoreDocsInOrder, topScorer);
70 if (scorer != null) {
71 // check that scorer obeys disi contract for docID() before next()/advance
73 int docid = scorer.docID();
80 return scorer;
H A DQueryUtils.java265 /** alternate scorer skipTo(),skipTo(),next(),next(),skipTo(),skipTo(), etc
293 // FUTURE: ensure scorer.doc()==-1
301 private Scorer scorer;
304 public void setScorer(Scorer scorer) throws IOException {
305 this.sc = scorer;
313 if (scorer == null) {
315 scorer = w.scorer(reader, true, false);
321 boolean more = op == skip_op ? scorer.advance(scorer
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestScoreCachingWrappingScorer.java59 private Scorer scorer; field in class:TestScoreCachingWrappingScorer.ScoreCachingCollector
73 mscores[idx] = scorer.score();
74 mscores[idx] = scorer.score();
75 mscores[idx] = scorer.score();
83 @Override public void setScorer(Scorer scorer) throws IOException { argument
84 this.scorer = new ScoreCachingWrappingScorer(scorer);
103 // We need to iterate on the scorer so that its doc() advances.
H A DTestSimilarity.java87 private Scorer scorer;
89 public void setScorer(Scorer scorer) throws IOException {
90 this.scorer = scorer;
94 assertEquals(1.0f, scorer.score(), 0);
110 private Scorer scorer;
112 public void setScorer(Scorer scorer) throws IOException {
113 this.scorer = scorer;
118 assertEquals((float)doc+base+1, scorer
[all...]
H A DTestSetNorm.java68 private Scorer scorer;
70 public void setScorer(Scorer scorer) throws IOException {
71 this.scorer = scorer;
75 scores[doc + base] = scorer.score();
H A DTestConstantScoreQuery.java52 private Scorer scorer;
55 public void setScorer(Scorer scorer) {
56 this.scorer = scorer;
57 assertEquals("Scorer is implemented by wrong class", scorerClassName, scorer.getClass().getName());
58 if (innerScorerClassName != null && scorer instanceof ConstantScoreQuery.ConstantScorer) {
59 final ConstantScoreQuery.ConstantScorer innerScorer = (ConstantScoreQuery.ConstantScorer) scorer;
66 assertEquals("Score differs from expected", expectedScore, this.scorer.score(), 0);
121 // for the combined BQ, the scorer should always be BooleanScorer's BucketScorer, because our scorer support
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestScoreCachingWrappingScorer.java59 private Scorer scorer; field in class:TestScoreCachingWrappingScorer.ScoreCachingCollector
73 mscores[idx] = scorer.score();
74 mscores[idx] = scorer.score();
75 mscores[idx] = scorer.score();
83 @Override public void setScorer(Scorer scorer) throws IOException { argument
84 this.scorer = new ScoreCachingWrappingScorer(scorer);
103 // We need to iterate on the scorer so that its doc() advances.
H A DTestSimilarity.java87 private Scorer scorer;
89 public void setScorer(Scorer scorer) throws IOException {
90 this.scorer = scorer;
94 assertEquals(1.0f, scorer.score(), 0);
110 private Scorer scorer;
112 public void setScorer(Scorer scorer) throws IOException {
113 this.scorer = scorer;
118 assertEquals((float)doc+base+1, scorer
[all...]
H A DTestSetNorm.java68 private Scorer scorer;
70 public void setScorer(Scorer scorer) throws IOException {
71 this.scorer = scorer;
75 scores[doc + base] = scorer.score();
H A DTestConstantScoreQuery.java52 private Scorer scorer;
55 public void setScorer(Scorer scorer) {
56 this.scorer = scorer;
57 assertEquals("Scorer is implemented by wrong class", scorerClassName, scorer.getClass().getName());
58 if (innerScorerClassName != null && scorer instanceof ConstantScoreQuery.ConstantScorer) {
59 final ConstantScoreQuery.ConstantScorer innerScorer = (ConstantScoreQuery.ConstantScorer) scorer;
66 assertEquals("Score differs from expected", expectedScore, this.scorer.score(), 0);
121 // for the combined BQ, the scorer should always be BooleanScorer's BucketScorer, because our scorer support
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DDelegatingCollector.java33 protected Scorer scorer; field in class:DelegatingCollector
54 public void setScorer(Scorer scorer) throws IOException { argument
55 this.scorer = scorer;
56 delegate.setScorer(scorer);
/lucene-3.6.0/lucene/contrib/misc/src/test/org/apache/lucene/index/
H A DTestFieldNormModifier.java127 private Scorer scorer;
131 scores[doc + docBase] = scorer.score();
138 public void setScorer(Scorer scorer) throws IOException {
139 this.scorer = scorer;
165 private Scorer scorer;
168 scores[doc + docBase] = scorer.score();
175 public void setScorer(Scorer scorer) throws IOException {
176 this.scorer = scorer;
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/function/
H A DQueryValueSource.java78 Scorer scorer; field in class:QueryDocValues
79 int scorerDoc; // the document the scorer is on
83 // to trigger a scorer reset on first access.
98 scorer = weight.scorer(reader, true, false);
99 if (scorer==null) {
108 scorerDoc = scorer.advance(doc);
118 return scorer.score();
/lucene-3.6.0/lucene/contrib/grouping/src/java/org/apache/lucene/search/grouping/
H A DAbstractAllGroupsCollector.java62 public void setScorer(Scorer scorer) throws IOException {} argument
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestOmitTf.java303 private Scorer scorer;
305 public final void setScorer(Scorer scorer) {
306 this.scorer = scorer;
311 float score = scorer.score();
321 private Scorer scorer;
323 public final void setScorer(Scorer scorer) {
324 this.scorer = scorer;
329 float score = scorer
404 setScorer(Scorer scorer) argument
[all...]

Completed in 488 milliseconds

12345