Search Indexes

Retrieves the search indexes for every searchable type on the tenant: custom schema types, customer, and legal-entity. Each item includes type.
When sort is omitted, indexes are ordered by metadata.createdAt descending. When the X-Total-Count request header is true, the response includes the X-Total-Count header with the number of indexes. The response body stays an array.
- : Needed to search documents, to read saved searches, and to read search indexes and index jobs.
Your Emporix tenant's name. Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Page number to be retrieved. The number of the first page is 1.
1Number of items to be retrieved per page.
60Comma-separated list of properties used to sort the results. The order of properties indicates their priority.
Possible values:
{fieldName}{fieldName}:ASC{fieldName}:DESC
When the direction is omitted, the field is sorted in ascending order. When sort is omitted, results are ordered by metadata.createdAt descending.
name:ASCA standard query parameter is used to search for specific values.
Comma-separated list of index properties to return. When the parameter is omitted, the index is returned in full.
id,name,statusList of language codes acceptable for the response.
- If the header is set to a language or a list of languages, the service returns the first requested language that has a translation. Localized fields are maps with that language code as the key.
- If the header is set to
*, localized fields are retrieved as maps of translations, where the keys are language codes and values are the fields in their respective languages. - If the header is empty, localized fields are retrieved as maps containing a single translation, where the key is a language code and the value is the field in the specified language. The endpoint assumes that localized fields are to be retrieved in the tenant's default language defined in the Configuration Service.
- If none of the requested languages has a translation, the localized fields are omitted from the response.
Flag indicating whether the total count of retrieved items should be returned.
falseThe request succeeded. The body is the current page of indexes.
The authorization token is invalid or has expired.
The access token does not include search.search_read.
A server-side error occurred.
GET /search/{tenant}/search/indexes HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"id": "vehicles",
"type": "VEHICLE",
"name": {
"en": "Vehicles"
},
"description": {
"en": "Search vehicles by name and power"
},
"status": "ready",
"metadata": {
"version": 1,
"createdAt": "2026-03-12T10:00:00.000Z",
"modifiedAt": "2026-03-12T10:00:00.000Z"
}
},
{
"id": "bikes",
"type": "BIKE",
"name": {
"en": "Bikes"
},
"description": {
"en": "Search bikes by name"
},
"status": "ready",
"metadata": {
"version": 1,
"createdAt": "2026-03-13T10:00:00.000Z",
"modifiedAt": "2026-03-13T10:00:00.000Z"
}
}
]
Retrieves the search indexes for one type.
When sort is omitted, indexes are ordered by metadata.createdAt descending. When the X-Total-Count request header is true, the response includes the X-Total-Count header with the number of indexes. The response body stays an array.
- : Needed to search documents, to read saved searches, and to read search indexes and index jobs.
Your Emporix tenant's name. Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Type of documents to search. Use a custom schema type, customer, or legal-entity.
VEHICLEPage number to be retrieved. The number of the first page is 1.
1Number of items to be retrieved per page.
60Comma-separated list of properties used to sort the results. The order of properties indicates their priority.
Possible values:
{fieldName}{fieldName}:ASC{fieldName}:DESC
When the direction is omitted, the field is sorted in ascending order. When sort is omitted, results are ordered by metadata.createdAt descending.
name:ASCA standard query parameter is used to search for specific values.
Comma-separated list of index properties to return. When the parameter is omitted, the index is returned in full.
id,name,statusList of language codes acceptable for the response.
- If the header is set to a language or a list of languages, the service returns the first requested language that has a translation. Localized fields are maps with that language code as the key.
- If the header is set to
*, localized fields are retrieved as maps of translations, where the keys are language codes and values are the fields in their respective languages. - If the header is empty, localized fields are retrieved as maps containing a single translation, where the key is a language code and the value is the field in the specified language. The endpoint assumes that localized fields are to be retrieved in the tenant's default language defined in the Configuration Service.
- If none of the requested languages has a translation, the localized fields are omitted from the response.
Flag indicating whether the total count of retrieved items should be returned.
falseThe request succeeded. The body is the current page of indexes.
The authorization token is invalid or has expired.
The access token does not include search.search_read.
A server-side error occurred.
GET /search/{tenant}/search/{type}/indexes HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"id": "vehicles",
"type": "VEHICLE",
"name": {
"en": "Vehicles"
},
"description": {
"en": "Search vehicles by name and power"
},
"status": "ready",
"metadata": {
"version": 1,
"createdAt": "2026-03-12T10:00:00.000Z",
"modifiedAt": "2026-03-12T10:00:00.000Z"
}
}
]
Retrieves one search index.
- : Needed to search documents, to read saved searches, and to read search indexes and index jobs.
Your Emporix tenant's name. Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Type of documents to search. Use a custom schema type, customer, or legal-entity.
VEHICLEIndex id. Use 1 to 66 characters. Allowed characters are letters, digits, underscore, and hyphen.
vehiclesPattern: ^[\w-]{1,66}$Comma-separated list of index properties to return. When the parameter is omitted, the index is returned in full.
id,name,statusList of language codes acceptable for the response.
- If the header is set to a language or a list of languages, the service returns the first requested language that has a translation. Localized fields are maps with that language code as the key.
- If the header is set to
*, localized fields are retrieved as maps of translations, where the keys are language codes and values are the fields in their respective languages. - If the header is empty, localized fields are retrieved as maps containing a single translation, where the key is a language code and the value is the field in the specified language. The endpoint assumes that localized fields are to be retrieved in the tenant's default language defined in the Configuration Service.
- If none of the requested languages has a translation, the localized fields are omitted from the response.
The index exists.
A search index.
Index id.
vehiclesType this index belongs to. A custom schema type, customer, or legal-entity.
VEHICLEBuild state of the index.
readyPossible values: The authorization token is invalid or has expired.
The access token does not include search.search_read.
No index with this id exists for the type.
A server-side error occurred.
GET /search/{tenant}/search/{type}/indexes/{id} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"id": "vehicles",
"type": "VEHICLE",
"name": {
"en": "Vehicles"
},
"description": {
"en": "Search vehicles by name and power"
},
"fields": [
{
"path": "name.en",
"text": true,
"autocomplete": "PREFIX"
},
{
"path": "code",
"text": true,
"exact": true
}
],
"status": "ready",
"metadata": {
"version": 1,
"createdAt": "2026-03-12T10:00:00.000Z",
"modifiedAt": "2026-03-12T10:00:00.000Z"
}
}
Creates or updates the search index identified by {id} for one type: a custom schema type, customer, or legal-entity. Unknown properties in the body are ignored.
A new index returns 202 Accepted and the id of a job that builds the index. Saving an index whose status is building or failed, or whose field definition changed, also returns 202 Accepted and starts an update job. Analyzers are part of that definition. An index whose status is ready and whose field definition is unchanged returns 204 No Content and does not start a job. name and description can still change in that case. A job that is already in progress for this index returns 409 Conflict.
metadata can be omitted when the index is created and when it is updated. A missing metadata.version still updates an existing index. When metadata.version is sent, it is the optimistic lock: a value that does not match the stored index returns 409 Conflict.
- : Needed to create, update, and delete saved searches and search indexes.
Your Emporix tenant's name. Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Type of documents to search. Use a custom schema type, customer, or legal-entity.
VEHICLEIndex id. Use 1 to 66 characters. Allowed characters are letters, digits, underscore, and hyphen.
vehiclesPattern: ^[\w-]{1,66}$Language of the localized name and description in the request body. Each language key in those maps must be configured for the tenant.
enDefinition of a search index. Unknown properties are ignored.
Index id. Optional. When it is present, it must equal the {id} path parameter.
vehiclesThe index build has started. The body is the job id.
Identifier of an index job.
Job id.
66f1a2b3c4d5e6f708192a3bThe index is already ready and the field definition is unchanged. No job was started.
The index id or field list is invalid, or metadata.version is below 1.
The authorization token is invalid or has expired.
The access token does not include search.search_manage.
An index job is already in progress, or metadata.version does not match the stored index.
A server-side error occurred.
PUT /search/{tenant}/search/{type}/indexes/{id} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 238
{
"name": {
"en": "Vehicles"
},
"description": {
"en": "Search vehicles by name and power"
},
"fields": [
{
"path": "name.en",
"text": true,
"autocomplete": "PREFIX"
},
{
"path": "code",
"text": true,
"exact": true
},
{
"path": "mixins.brand.horsepower",
"exact": true
}
]
}{
"id": "66f1a2b3c4d5e6f708192a3b"
}
Starts deletion of one search index. The response is the id of the job that removes the index.
- : Needed to create, update, and delete saved searches and search indexes.
Your Emporix tenant's name. Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Type of documents to search. Use a custom schema type, customer, or legal-entity.
VEHICLEIndex id. Use 1 to 66 characters. Allowed characters are letters, digits, underscore, and hyphen.
vehiclesPattern: ^[\w-]{1,66}$Index deletion has started. The body is the job id.
Identifier of an index job.
Job id.
66f1a2b3c4d5e6f708192a3bThe authorization token is invalid or has expired.
The access token does not include search.search_manage.
No index with this id exists for the type.
An index job is already in progress for this index.
A server-side error occurred.
DELETE /search/{tenant}/search/{type}/indexes/{id} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"id": "66f1a2b3c4d5e6f708192a3c"
}Last updated
Was this helpful?

