2
* $Id: SphinxResult.java 1172 2008-02-24 13:50:48Z shodan $
10
* Includes retrieved matches array, status code and error/warning messages,
11
* query stats, and per-word stats.
13
public class SphinxResult
15
/** Full-text field namess. */
16
public String[] fields;
18
/** Attribute names. */
19
public String[] attrNames;
21
/** Attribute types (refer to SPH_ATTR_xxx constants in SphinxClient). */
22
public int[] attrTypes;
24
/** Retrieved matches. */
25
public SphinxMatch[] matches;
27
/** Total matches in this result set. */
30
/** Total matches found in the index(es). */
31
public int totalFound;
33
/** Elapsed time (as reported by searchd), in seconds. */
36
/** Per-word statistics. */
37
public SphinxWordInfo[] words;
39
/** Warning message, if any. */
40
public String warning = null;
42
/** Error message, if any. */
43
public String error = null;
46
/** Query status (refer to SEARCHD_xxx constants in SphinxClient). */
47
private int status = -1;
50
/** Trivial constructor, initializes an empty result set. */
53
this.attrNames = new String[0];
54
this.matches = new SphinxMatch[0];;
55
this.words = new SphinxWordInfo[0];
56
this.fields = new String[0];
57
this.attrTypes = new int[0];
60
/** Get query status. */
61
public int getStatus()
66
/** Set query status (accessible from API package only). */
67
void setStatus ( int status )
74
* $Id: SphinxResult.java 1172 2008-02-24 13:50:48Z shodan $