Skip to content

Commit

Permalink
Add indexState endpoint (#775)
Browse files Browse the repository at this point in the history
* Add indexState endpoint

* Add test
  • Loading branch information
aprudhomme authored Oct 30, 2024
1 parent 9c5b2a0 commit b3fb57a
Show file tree
Hide file tree
Showing 17 changed files with 1,716 additions and 1,096 deletions.
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

0 comments on commit b3fb57a

Please sign in to comment.