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);
90 std::string
logMsg(
bool isReset=
true);
96 static void parseHostPort(
const std::string& in, std::string&
host,
unsigned int&
port)
throw (std::exception);
106 void setRankingMode(
unsigned int rankingMode_,
const std::string& rankerExpression_=
"");
114 std::string makeDefaultJSON(
const std::string&
logMsg);
120 bool checkIncomingDocuments;
121 bool packIncomingDocuments;
122 unsigned int minNumberFieldsPacking;
129 unsigned int matchMode;
130 unsigned int sortMode;
131 unsigned int rankingMode;
132 std::string rankerExpression;
141 #endif // SPHINX_FUNCTIONAL_OBJECT_HPP