class Amazonite::DynamoDB::SearchResultItem

Overview

A single result from a SearchVectors operation.

Included Modules

Defined in:

dynamodb/search_result_item.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(item : Hash(String, AttributeValue) | Nil = nil, score : Float64 | Nil = nil) #

[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 hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def item : Hash(String, AttributeValue) | Nil #

A map of attribute names to AttributeValue objects, representing the projected attributes of the item returned by the vector search.


[View source]
def item=(item : Hash(String, AttributeValue) | Nil) #

A map of attribute names to AttributeValue objects, representing the projected attributes of the item returned by the vector search.


[View source]
def score : Float64 | Nil #

The similarity score for this item relative to the search vector. The interpretation depends on the distance function configured for the vector index.


[View source]
def score=(score : Float64 | Nil) #

The similarity score for this item relative to the search vector. The interpretation depends on the distance function configured for the vector index.


[View source]
def validate! : Nil #

[View source]