SphinxMatch.java 514 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * $Id$
  3. */
  4. package org.sphx.api;
  5. import java.util.*;
  6. /**
  7. * Matched document information, as in search result.
  8. */
  9. public class SphinxMatch
  10. {
  11. /** Matched document ID. */
  12. public long docId;
  13. /** Matched document weight. */
  14. public int weight;
  15. /** Matched document attribute values. */
  16. public ArrayList attrValues;
  17. /** Trivial constructor. */
  18. public SphinxMatch ( long docId, int weight )
  19. {
  20. this.docId = docId;
  21. this.weight = weight;
  22. this.attrValues = new ArrayList();
  23. }
  24. }
  25. /*
  26. * $Id$
  27. */