Skip to content

ObjectSearchResult

Type Parameter
T
Property Type Description
index number Position of the matched item: its index in the items array passed to searchObjects, or its current position in a FuzzyObjectIndex. Index positions change when items are removed: remove() moves the last item into the freed slot.
item T The matched object.
keyScores number[] Per-key scores in the same order as the configured keys: how well each key matches the query (with matchMode: 'crossKey', the share of the query it matches). A score of 0.0 means the item did not match on that key.
score number Combined score of the key scores (0.0–1.0), as set by scoreMode: by default the weighted mean over all keys.