Open
Description
Describe the bug
Hi, Can you help me understand this behavior?
To Reproduce
from fast_autocomplete import AutoComplete
words = {'xcode': {}, 'xcode version': {}, 'xcode previous version': {}}
autocomplete = AutoComplete(words=words)
and now when I search, I get this result:
autocomplete.search(word='xcode ver', max_cost=1, size=10)
# output:
[['xcode'], ['xcode version']]
Isn't "xcode version" should be first suggestion?
Expected behavior
I was expecting "xcode version" to be the
5644
first suggestion.
# output:
[['xcode version']]
And if that is an expected behavior, how do I get the desired result? Any idea?
Metadata
Metadata
Assignees
Labels
No labels