krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
17.89k stars 759 forks source link

ignoreLocation still won't match for queries in longer strings #486

Closed pierreburton91 closed 3 years ago

pierreburton91 commented 3 years ago

Describe the bug

I have a list of items with some of them having fairly long labels. Even with ignoreLocation set to true, I can't find the item I'm looking for if I'm searching for a query that lies at the end of the label.

Version

5.2.3

🔬Minimal Reproduction

the label: "800w perforateur burineur sds+ 26mm en coffret tstak + 3 burins dt60330-quartz + 5 forets dt60302-quartz"

The query: "dt60302"

Additional context

The config:

{
        ignoreLocation: true,
        minMatchCharLength: 3,
        keys: ["label"]
}

Loom link to live reproduction: https://www.loom.com/share/bf31e75441c84a1c8f0fc7af3f36517e

pierreburton91 commented 3 years ago

Updated to latest release (6.4.1) and it works as expected.