Add a namespace to a node for Zoekt indexing
PUT
/api/v4/admin/zoekt/shards/{node_id}/indexed_namespaces/{namespace_id}
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” node_id
required
integer
The id of the Search::Zoekt::Node
namespace_id
required
integer
The id of the namespace you want to index in this node
Request Body
Section titled “ Request Body ” Media type application/json
object
search
Whether or not an indexed namespace should be enabled for searching
boolean
Example generated
{ "search": true}Responses
Section titled “ Responses ”OK
Media type application/json
object
id
integer format: int64
zoekt_shard_id
integer format: int64
zoekt_node_id
integer format: int64
namespace_id
integer format: int64
number_of_replicas_override
integer
Example
{ "id": 1234, "zoekt_shard_id": 1234, "zoekt_node_id": 1234, "namespace_id": 1234, "number_of_replicas_override": 2}Bad Request
401 Unauthorized
403 Forbidden
404 Not found