Constructor and Description |
---|
ScoreNode(NodeId id,
float score)
Creates a new
ScoreNode . |
ScoreNode(NodeId id,
float score,
int doc)
Creates a new
ScoreNode . |
public ScoreNode(NodeId id, float score)
ScoreNode
.id
- the node id.score
- the score value.public ScoreNode(NodeId id, float score, int doc)
ScoreNode
.id
- the node id.score
- the score value.doc
- the document number.public NodeId getNodeId()
ScoreNode
.public float getScore()
ScoreNode
.public void setScore(float score)
score
- the score value.public int getDoc(org.apache.lucene.index.IndexReader reader) throws IOException
reader
- the current index reader to look up the document if
needed.IOException
- if an error occurs while reading from the index or
the node is not present in the index.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.