Class 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 Detail

      • doc

        public final long doc
        The document index of this result.
      • score

        public final double score
        The score of this result.
    • Constructor Detail

      • ResultItem

        public ResultItem​(long doc,
                          double score)
    • Method Detail

      • doc

        public long doc()
      • score

        public final double score()
      • score

        public final String score​(int digits)