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

Add indexState endpoint #775

Merged
merged 2 commits into from
Oct 30, 2024
Merged
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
21 changes: 21 additions & 0 deletions clientlib/src/main/proto/yelp/nrtsearch/luceneserver.proto
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,17 @@ service LuceneServer {
};
}

/* Gets the state information for an index, includes settings, live_settings, search schema */
rpc indexState (IndexStateRequest) returns (IndexStateResponse) {
option (google.api.http) = {
post: "/v1/index_state"
body: "*"
additional_bindings {
get: "/v1/index_state/{index_name}"
}
};
}

//GET methods
/* healthcheck */
rpc status (HealthCheckRequest) returns (HealthCheckResponse) {
Expand Down Expand Up @@ -914,6 +925,16 @@ message StateResponse {
string response = 1; //json string of the current index state
}

message IndexStateRequest {
// index name
string index_name = 1;
}

message IndexStateResponse {
// index state
IndexStateInfo index_state = 1;
}

message AddReplicaRequest {
int32 magicNumber = 1; //magic number send on all requests since these are meant for internal communication only
string indexName = 2; //index name
Expand Down
Loading
Loading