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.Scorer
IOException
public long cost()
cost
in class org.apache.lucene.search.DocIdSetIterator
public int docID()
docID
in class org.apache.lucene.search.DocIdSetIterator
public int nextDoc() throws IOException
nextDoc
in class org.apache.lucene.search.DocIdSetIterator
IOException
public int advance(int target) throws IOException
advance
in class org.apache.lucene.search.DocIdSetIterator
IOException
public float score()
score
in class org.apache.lucene.search.Scorer
Scorer.score()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.