hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxSearchTest.hpp
Go to the documentation of this file.
1 #ifndef SPHINX_SEARCH_TEST_HPP
2 #define SPHINX_SEARCH_TEST_HPP
3 
5 
6 namespace HCE
7 {
8 namespace sphinx
9 {
10 namespace tests
11 {
12 class SphinxSearcher;
13 
14 //-------------------------------------------------------------------
16 {
17 public:
18  static void testWeightPacker(void);
19  static void testWeightCalculator(void);
20  static void testSerialization(void);
21  static void testSerializationExt(void);
22  static void testMemoryManager(void);
23 
24  static void testSearcherProcess(SphinxFunctionalObject& fObj, const std::string& query="apple", unsigned int maxResults=10);
25  static void testGetResultUseOffset(SphinxFunctionalObject& fObj, const std::string& query="apple", unsigned int maxResults=10, unsigned int offset=0);
26 
27  static void makeSearchRequest(SphinxFunctionalObject& fObj, const std::string& query,
28  const std::vector<std::pair<std::string, std::string> >& queryParameters,
29  const std::vector<std::pair<std::string, std::string> >& orderParameters,
30  const std::vector<std::string>& externalFields,
31  const std::vector<std::string>& orderFields,
32  SphinxResultData& resultData); // out result
33 
34  static unsigned int simpleSearchQuery(SphinxFunctionalObject& fObj, const std::string& query, size_t repeatCount);
35  static void testSerializationSearchProcess(const std::string& json);
37  const std::string& query, std::vector<Poco::SharedPtr<SphinxFilter> >& filters);
38 
39  static void testFilterSearch(SphinxFunctionalObject& fObj);
40 };
41 //-------------------------------------------------------------------
42 //-------------------------------------------------------------------
43 } // end namespace tests
44 } // end namespace sphinx
45 } // end namespace HCE
46 
47 #endif // SPHINX_SEARCH_TEST_HPP