diff --git a/concordia-server/searcher_controller.cpp b/concordia-server/searcher_controller.cpp index a077f64..99c311c 100644 --- a/concordia-server/searcher_controller.cpp +++ b/concordia-server/searcher_controller.cpp @@ -46,11 +46,17 @@ void SearcherController::fullSearch(rapidjson::Writer & const int tmId, const int limit, const int offset) { + Logger::logString("full search for pattern", pattern); + boost::ptr_map::iterator it = _concordiasMap->find(tmId); if (it != _concordiasMap->end()) { + Logger::log("Concordia got"); TokenizedSentence tokenizedPattern = it->second->tokenize(pattern, false, false); + Logger::log("sentence tokenized"); pattern = _lemmatizerFacade->lemmatizeIfNeeded(tokenizedPattern.getTokenizedSentence(), tmId); + Logger::log("sentence lemmatized"); FullSearchResult result = _unitDAO.getFullSearchResult(it->second->fullSearch(pattern, limit, offset, true), tokenizedPattern.getTokens().size()); + Logger::log("full search result acquired"); jsonWriter.StartObject(); jsonWriter.String("status"); jsonWriter.String("success");