SphinxWordInfo.java 542 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * $Id$
  3. */
  4. package org.sphx.api;
  5. /** Per-word statistics class. */
  6. public class SphinxWordInfo
  7. {
  8. /** Word form as returned from search daemon, stemmed or otherwise postprocessed. */
  9. public String word;
  10. /** Total amount of matching documents in collection. */
  11. public long docs;
  12. /** Total amount of hits (occurences) in collection. */
  13. public long hits;
  14. /** Trivial constructor. */
  15. public SphinxWordInfo ( String word, long docs, long hits )
  16. {
  17. this.word = word;
  18. this.docs = docs;
  19. this.hits = hits;
  20. }
  21. }
  22. /*
  23. * $Id$
  24. */