Comments (2)
Hi @subsetpark ,
the fuzzy
option accepts a predicate function, and should work as you expect. Could you show how you pass this option to the constructor or to the search
method? I suspect that something is wrong, and the option is simply not considered, so the default applies: with a "fuzziness" of 0.2, terms with a smaller length than 3 would not allow any fuzzy match anyway (as, for example, for a two-characters words the max edit distance would be Math.round(2*0.2)
which is 0
even without the condition on term.length
).
Are you also using prefix match? If so, short terms might be matching longer ones due to prefix match.
Finally, if you checked all the above, it is possible that there is a bug. Would it be possible to share a minimal reproduction example?
from minisearch.
I now see that you closed the issue, so I assume you found the problem. If not, feel free to reopen it or comment further.
from minisearch.
Related Issues (20)
- Switch to stronger typings HOT 2
- Barebones, framework agnostic example HOT 8
- Is it possible to make autoSuggest suggest the entire title of my blogs instead of just one word? HOT 2
- case-sensitive dynamic selection during search HOT 2
- how to index nested field with its value is an array HOT 6
- about search result HOT 8
- Minimum should match HOT 4
- Any way to search across multiple vitepress sites? HOT 4
- How to have a search at least as good as `includes` HOT 3
- How to prevent treating terms separately? HOT 2
- Can `loadJSON` be added as an instance method which merges indices? HOT 3
- Any notification on status of data loading? HOT 1
- Search terms are broken when immediately following unicode whitespace HOT 9
- Get Mini Search version? HOT 2
- Re-index to new documents with unknown changes HOT 4
- Generating (caching) an index during build-time rather than runtime HOT 2
- Typescript with module resolution "NodeNext" + type: "commonjs" fails to import the commonJS module HOT 13
- When there are a lot of markup documents (about 2000). The minisearch search search box is very sluggish, what is the solution? HOT 4
- bm25 and cross-language searching HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minisearch.