diff --git a/src/search_local/index_read/process/bool_query_process.cc b/src/search_local/index_read/process/bool_query_process.cc index f384a0b..f7be184 100644 --- a/src/search_local/index_read/process/bool_query_process.cc +++ b/src/search_local/index_read/process/bool_query_process.cc @@ -286,4 +286,4 @@ std::vector BoolQueryProcess::Combination(std::vectorTerminalTag()){ query_process_ = RangeQueryGenerator::Instance()->GetRangeQueryProcess(E_INDEX_READ_RANGE_PRE_TERM , query[RANGE]); @@ -103,15 +83,10 @@ int SearchTask::Process(CTaskRequest *request) query_process_ = RangeQueryGenerator::Instance()->GetRangeQueryProcess(E_INDEX_READ_RANGE , query[RANGE]); } - }else{ - log_error("Range query init error."); - return -RT_PARSE_JSON_ERR; - } - - if (query.isMember(BOOL)){ + }else if (query.isMember(BOOL)){ query_process_ = new BoolQueryProcess(query[BOOL]); }else{ - log_error("Bool query init error."); + log_error("no suit query process."); return -RT_PARSE_JSON_ERR; }