FuzzySearchMatch
Inherits: RefCounted < Object
Description
Section titled “Description”Result returned by FuzzySearch containing match information.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| int | original_index |
-1 |
| int | score |
0 |
| String | target |
"" |
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| Array[Vector2i] | get_matched_substrings() const |
Property descriptions
Section titled “Property descriptions”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.
Method descriptions
Section titled “Method descriptions”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().
