protected class ConstantScoreWeightQuery.ConstantWeightScorer
extends org.apache.lucene.search.Scorer
| Constructor and Description |
|---|
ConstantWeightScorer(org.apache.lucene.index.LeafReaderContext readerContext,
org.apache.lucene.search.Weight weight) |
| Modifier and Type | Method and Description |
|---|---|
int |
advance(int target) |
long |
cost() |
int |
docID() |
int |
freq() |
int |
nextDoc() |
float |
score()
This method always returns a score of 1.0 for the current document, since all the documents which satisfy the constraint
are considered equal
|
public ConstantWeightScorer(org.apache.lucene.index.LeafReaderContext readerContext,
org.apache.lucene.search.Weight weight)
public int freq()
throws IOException
freq in class org.apache.lucene.search.ScorerIOExceptionpublic long cost()
cost in class org.apache.lucene.search.DocIdSetIteratorpublic int docID()
docID in class org.apache.lucene.search.DocIdSetIteratorpublic int nextDoc()
throws IOException
nextDoc in class org.apache.lucene.search.DocIdSetIteratorIOExceptionpublic int advance(int target)
throws IOException
advance in class org.apache.lucene.search.DocIdSetIteratorIOExceptionpublic float score()
score in class org.apache.lucene.search.ScorerScorer.score()Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.