Create an index for a single type

post/admin/indices/{type}
Internal-Use Only

Ensures that an index exists for the specified type when the searchable query parameter is set to true, otherwise creates a new unsearchable index. This is especially required when re-indexing data from a source database (see example Use Case Five). No errors will be reported if the index already exists. Returns the name of the newest index for the specified type.

Request Samples

1

Response Samples

1{
2 "type": "report",
3 "name": "sand__report__1468507165442",
4 "links": [
5 {
6 "method": "GET",
7 "rel": "self",
8 "href": "/svi-sand/admin/indices/report",
9 "uri": "/svi-sand/admin/indices/report",
10 "type": "application/vnd.sas.sand.index"
11 },
12 {
13 "method": "POST",
14 "rel": "create",
15 "href": "/svi-sand/admin/indices/report?searchable=true",
16 "uri": "/svi-sand/admin/indices/report?searchable=true",
17 "responseType": "application/vnd.sas.sand.index"
18 },
19 {
20 "method": "DELETE",
21 "rel": "delete",
22 "href": "/svi-sand/admin/indices/report",
23 "uri": "/svi-sand/admin/indices/report"
24 }
25 ]
26}

Path Parameters

NameTypeRequiredDescription
type
string
true

The name of the type.

Query Parameters

NameTypeRequiredDescription
searchable
boolean
false

Whether to create a searchable as opposed to an unsearchable index.

Default:
true

Responses

StatusMeaningDescription
200OKThe request succeeded.Schema
404Not FoundThe type does not exist or it is not configured to be indexed for search.Schema