Skip to content

FuzzySearchMatch

Inherits: RefCounted < Object

Result returned by FuzzySearch containing match information.

Type Name Default
int original_index -1
int score 0
String target ""
Returns Method
Array[Vector2i] get_matched_substrings() const

original_index

int original_index = -1

The original index of target in the provided array of targets when using FuzzySearch.search_all() otherwise -1.

score

int score = 0

Match score determined by FuzzySearch. Scores are not normalized and generally should not be directly compared between different queries.

target

String target = ""

Target string which was matched against.

get_matched_substrings

Array[Vector2i] get_matched_substrings() const

Returns each matched substring interval of target. The Vector2i.x component is the start of the interval and the Vector2i.y component is the length, corresponding to the arguments for String.substr().