Skip to content

DynamoDB  >  Structures  >  SearchSchemaElement

SearchSchemaElement

Structure Class

SearchSchemaElement dataclass

An element in the search schema of a vector index.

Attributes

attribute_name instance-attribute
attribute_name: str

The name of the attribute.

search_schema_element_type instance-attribute
search_schema_element_type: SearchSchemaElementType

The role of the attribute in the search schema. Valid values:

  • HASH - A partition key that partitions the vector index for independent scaling. When specified, you must provide this attribute's value in the SearchConditionExpression.

  • INLINE_FILTER - An attribute projected into the vector index for filtering at the storage layer during search. Inline filters are optional in the SearchConditionExpression.