class Amazonite::DynamoDB::SearchSchemaElement

Overview

An element in the search schema of a vector index.

Included Modules

Defined in:

dynamodb/search_schema_element.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(attribute_name : String, search_schema_element_type : SearchSchemaElementType) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def attribute_name : String #

The name of the attribute.


[View source]
def attribute_name=(attribute_name : String) #

The name of the attribute.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def 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.


[View source]
def search_schema_element_type=(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.


[View source]
def validate! : Nil #

[View source]