Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug #5607

Merged
merged 1 commit into from
Jun 21, 2023
Merged

fix bug #5607

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/clients/meta/MetaClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,8 @@ Status MetaClient::handleResponse(const RESP& resp) {
return Status::Error("Related fulltext index exists, please drop it first");
case nebula::cpp2::ErrorCode::E_HOST_CAN_NOT_BE_ADDED:
return Status::Error("Could not add a host, which is not a storage and not expired either");
case nebula::cpp2::ErrorCode::E_ACCESS_ES_FAILURE:
return Status::Error("Access elasticsearch failed");
default:
return Status::Error("Unknown error %d!", static_cast<int>(resp.get_code()));
}
Expand Down
3 changes: 3 additions & 0 deletions src/graph/executor/query/FulltextIndexScanExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ StatusOr<plugin::ESQueryResult> FulltextIndexScanExecutor::accessFulltextIndex(
limit = std::numeric_limits<int32_t>::max();
}
int64_t count = limit - offset;
if (count == 0) {
return plugin::ESQueryResult();
}
execFunc = [=, &esAdapter]() { return esAdapter.queryString(index, query, offset, count); };
break;
}
Expand Down