PBC Yokozuna Schema Get

Fetch a search schema from Riak Search.

Request

In a request message, you only need to specify the name of the schema as a binary (under name);

message RpbYokozunaSchemaGetReq {
    required bytes name  =  1;  // Schema name
}

Response

message RpbYokozunaSchemaGetResp {
  required RpbYokozunaSchema schema =  1;
}

The response message will include a RpbYokozunaSchema structure.

message RpbYokozunaSchema {
    required bytes name    =  1;
    optional bytes content =  2;
}

This message includes the schema name and its xml content.