it.unimi.di.mg4j.query
Class ResultItem
java.lang.Object
it.unimi.di.mg4j.query.BrowseItem
it.unimi.di.mg4j.query.ResultItem
public class ResultItem
- extends BrowseItem
An instance of this class is used to pack the results gathered by QueryServlet
in such a way that they are easily accessible from the Velocity Template Language.
- Since:
- 0.9.2
- Author:
- Sebastiano Vigna
Field Summary |
int |
doc
The document index of this result. |
double |
score
The score of this result. |
Constructor Summary |
ResultItem(int doc,
double score)
|
doc
public final int doc
- The document index of this result.
score
public final double score
- The score of this result.
ResultItem
public ResultItem(int doc,
double score)
doc
public int doc()
score
public final double score()
score
public final String score(int digits)
toString
public String toString()
- Overrides:
toString
in class BrowseItem