14 #ifndef SPHINX_REQUEST_INFO_HPP
15 #define SPHINX_REQUEST_INFO_HPP
29 WordInfo(
const std::string& word_,
unsigned int hits_,
unsigned int docs_) :
word(word_),
hits(hits_),
docs(docs_) {}
54 void setNodeName(
const std::string& nodeName_) {nodeName=nodeName_;}
57 void setQuery(
const std::string& query_) {query=query_;}
58 std::string
getQuery(
void)
const {
return query;}
60 void setQueryId(
unsigned int queryId_) {queryId=queryId_;}
66 void setOrderBy(
unsigned int orderBy_) {orderBy=orderBy_;}
69 void setTotal(
unsigned int total_) {total=total_;}
70 unsigned int getTotal(
void)
const {
return total;}
75 void setTimeMsec(
unsigned int timeMsec_) {timeMsec=timeMsec_;}
82 const std::vector<SphinxResultDataItem<WordInfo> >&
getWords(
void)
const {
return words;}
96 unsigned int maxResultsNumber;
99 unsigned int totalFound;
100 unsigned int timeMsec;
102 std::vector<SphinxResultDataItem<WordInfo> > words;
109 #endif // SPHINX_REQUEST_INFO_HPP