Skip to main content
The index object is where you define the structure of the index. The index defines what kind of data you can add to the index in the properties method.
Index example
The index object must have a fields property with the fields you want to include in the index. Each field object must include type. The type specifies the data type for the index field.

Metadata descriptions

Index

The metadata property on the index is optional. Use it to add a description to the index. The description is exposed by the Enterspeed Query MCP to give AI agents meaningful context about what the index contains.
Index description example

Field

The metadata property on a field is optional. Use it to add a description to the field. The description is exposed by the Enterspeed Query MCP to give AI agents meaningful context about what the field is used for. Field metadata can hold at most 5 entries, with keys of at most 20 characters and string values of at most 50 characters. Field metadata is not supported on object fields — see Object.
Field description example

Types

Setting the right types for the properties in your index is important. The types defines the intend of the fields and prevents data of other types from going into the index. The types also helps with effeciently index, search, and analyze of the data added to the index.

Text

Numeric

Boolean

Date

List

Range

Object

metadata (including description) is not supported on object fields and is ignored. An object field is a container for other values rather than a leaf field in its own right, and only leaf fields can carry metadata. Object fields are not searchable, but their value is returned as-is on the index items your queries return.