Class TermStats


  • public class TermStats
    extends Object
    Modifiable version of TermStatistics useful for aggregation of per-shard stats.
    • Field Detail

      • term

        public final String term
      • docFreq

        public long docFreq
      • totalTermFreq

        public long totalTermFreq
    • Constructor Detail

      • TermStats

        public TermStats​(String term)
      • TermStats

        public TermStats​(String term,
                         long docFreq,
                         long totalTermFreq)
      • TermStats

        public TermStats​(String field,
                         org.apache.lucene.search.TermStatistics stats)
    • Method Detail

      • toTermStatistics

        public org.apache.lucene.search.TermStatistics toTermStatistics()