You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 8, 2022. It is now read-only.
fuse.search(searchText, in: Keyword.searchables, completion: { results in
...
})
And I am getting this problem:
To take in account: Keyword.searchables is an array of string with near of 3000 items in it.
By the moment I solved it on this way:
for (index, item) in chunk.enumerated() {
if let result = self.search(pattern, in: item) {
if result.ranges.allSatisfy({ $0.upperBound > $0.lowerBound }) {
items.append((index, result.score, result.ranges))
}
}
}
I know that's not the best way, and functionality comes affected, but it's working for me now.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying use asynchronous version on this way:
And I am getting this problem:
To take in account: Keyword.searchables is an array of string with near of 3000 items in it.
By the moment I solved it on this way:
I know that's not the best way, and functionality comes affected, but it's working for me now.
Thanks in advance.
The text was updated successfully, but these errors were encountered: