18 const Poco::SharedPtr<SphinxResultData> &sphinxResultData,
19 std::vector<std::pair<std::string, unsigned long long> > &extractedWeightKeys)
21 extractedWeightKeys.clear();
22 extractWeightKeyPaisFromResultData(sphinxResultData, extractedWeightKeys);
25 void SphinxResultTransformer::extractWeightKeyPaisFromResultData(
26 const Poco::SharedPtr<SphinxResultData> &sphinxResultData,
27 std::vector<std::pair<std::string, unsigned long long> > &extractedWeightKeys)
29 size_t totalMatchInfoNumber = sphinxResultData->getMatchInfoCount();
30 for (
size_t matchInfoIndex =0; matchInfoIndex < totalMatchInfoNumber;
33 extractedWeightKeys.push_back(make_pair(matchInfo.
getWeight(), matchInfo.
getDocId()));