14 #ifndef SPHINX_FUNCTIONAL_OBJECT_HPP
15 #define SPHINX_FUNCTIONAL_OBJECT_HPP
29 class SphinxInputJsonMessage;
30 class SphinxOutputJsonMessage;
36 const std::string& indexName_=
"",
bool startSearchd_=
false,
bool stopSearchd_=
false);
38 const std::string& indexName_=
"",
bool startSearchd_=
false,
bool stopSearchd_=
false);
42 std::string
Process(
const std::string& json);
58 void applyError(
const std::string& msg,
unsigned int code);
89 std::string
logMsg(
bool isReset=
true);
90 std::ostream&
log(
void);
95 void parseHostPort(
const std::string& in, std::string&
host,
unsigned int&
port)
throw (std::exception);
105 void setRankingMode(
unsigned int rankingMode_,
const std::string& rankExpression_=
"");
111 std::string makeDefaultJSON(
const std::string&
logMsg);
117 bool checkIncomingDocuments;
118 bool packIncomingDocuments;
119 unsigned int minNumberFieldsPacking;
126 unsigned int matchMode;
127 unsigned int sortMode;
128 unsigned int rankingMode;
129 std::string rankExpression;
138 #endif // SPHINX_FUNCTIONAL_OBJECT_HPP