10000 Autocomplete not working as expected · Issue #28 · seperman/fast-autocomplete · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Autocomplete not working as expected #28
Open
@Shivanandroy

Description

@Shivanandroy

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0