14 #ifndef HIGHLIGHTING_ALGORITHM_REFINE_HPP
15 #define HIGHLIGHTING_ALGORITHM_REFINE_HPP
28 unsigned char subjectMask;
29 unsigned int incrementalIndex;
31 std::map<unsigned int, std::pair<unsigned long long, WordPos> > wordPositionMap;
34 void setWordPositionMap(std::map<
unsigned int, std::pair<unsigned long long, WordPos> > &_wordPositionMap);
36 std::map<
unsigned long long, std::vector<WordPos> > &wordMapPtr, std::map<unsigned int, WordPos> &wordOffsetMap);
37 void findChain(Poco::SharedPtr<HCE::OutDataRefine> outData, std::map<unsigned int, WordPos> &wordOffsetMap);
38 void findChainStrict(Poco::SharedPtr<HCE::OutDataRefine> outData, std::map<unsigned int, WordPos> &wordOffsetMap);
42 HighlightingAlgorithmRefine(
unsigned char _normalizationId,
unsigned char _subjectMask): subjectMask(_subjectMask), incrementalIndex(0), name(
"(A-HCE::Refine)") {}
43 virtual void process(
const std::vector<std::pair<SearchType, std::string> > &searchStrings,
const Poco::SharedPtr<std::string> contentPtr,
45 virtual std::string
getName() {
return name;}