Skip to content

/AWS1/CL_DYNSEARCHRESULTITEM

A single result from a SearchVectors operation.

CONSTRUCTOR

IMPORTING

Optional arguments:

it_item TYPE /AWS1/CL_DYNATTRIBUTEVALUE=>TT_ATTRIBUTEMAP TT_ATTRIBUTEMAP

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

iv_score TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING

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


Queryable Attributes

Item

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

Accessible with the following methods

Method Description
GET_ITEM() Getter for ITEM, with configurable default
ASK_ITEM() Getter for ITEM w/ exceptions if field has no value
HAS_ITEM() Determine if ITEM has a value

Score

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

Accessible with the following methods

Method Description
GET_SCORE() Getter for SCORE
ASK_SCORE() Getter for SCORE w/ exceptions if field has no value
STR_SCORE() String format for SCORE

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_SEARCHRESULTLIST

TYPES TT_SEARCHRESULTLIST TYPE STANDARD TABLE OF REF TO /AWS1/CL_DYNSEARCHRESULTITEM WITH DEFAULT KEY
.