elasticlunr.js
Fuse
elasticlunr.js | Fuse | |
---|---|---|
10 | 60 | |
2,014 | 17,504 | |
- | - | |
0.0 | 6.1 | |
over 1 year ago | about 1 month ago | |
JavaScript | JavaScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
elasticlunr.js
-
Show HN: A fast, accurate and multilingual fuzzy search lib for the front end
When i did my static site search function some time ago, I used Elasticlunr. I was able to pregenerate the index file as a big json file that is loaded at the client.
http://elasticlunr.com/
-
Ask HN: What's the best way to add search to my website?
If your content is mostly static, you might want to consider pre-building an index and shipping it as a whole. You could look into something like
* https://stork-search.net/ (Rust/WASM)
* tinysearch: https://github.com/tinysearch/tinysearch (Rust/WASM)
* https://lunrjs.com/ (JS, simple, stable)
* http://elasticlunr.com/ - based on the former, slightly more sophisticated tuning options
- How to build question / answer action?
- Self-Contained Search for Archived Static Site?
-
Writing a Fuzzy Search Component With Preact and Fuse for Astro
Very nice! Seems to perform very well. I'm curious, have you compared Fuse with other search engines? Like flex search or elasticlunr? Why did you choose fuse ?
-
How do you build search for a web app?
Check out elasticlunr
-
Ask HN: What do you use to power search for a static site?
There's also Elasticlunr which is based off of lunr.js and is what mdBook uses
http://elasticlunr.com/
-
Elasticlunr, a full-text search library for Elixir
Does this relate to http://elasticlunr.com/? mdBook uses the latter, and I was wondering how I can parse/read its indexes from Python so I can provide my own search from them.
-
Goodbye Wordpress, Hello Jamstack
Same as above, for most blogs something like http://elasticlunr.com/ can get the job done really well.
3. HotSwap on the fly themes
-
Doctave CLI 0.2.0: A Benchmarking Story
Doctave comes with offline search built in. We use the elasticlunr-rs crate to generate a search index that is compatible with the elasticlunr.js library. You can see it in action by going to our docs (built with the CLI, naturally) and hitting the letter s on your keyboard to focus on the search bar. The searching happens entirely client-side.
Fuse
-
Show HN: A fast, accurate and multilingual fuzzy search lib for the front end
oh very cool. would love to see the comparison/benchmark against the library I've used in projects for years (Fuse - https://github.com/krisk/Fuse).
Keep up the great work!
-
Releasing my first side project: Flag Finder!
It has the merit of being accomplished. Good work ! You can use https://fusejs.io/ to improve your search feature ;)
-
I have an array of objects and I want to add a "fuzzy search" method. Please help me choose a strategy.
I had a very similar task and solved it with https://fusejs.io/ and was very happy with the result. Great performance and was able to get the exact config I wanted very easily.
- More efficient way of searching through multiple children of a JSON
-
how to make a search bar actually function (as in actually search elemts from <div> in my nav bar)
You can use this https://fusejs.io/ library to implement a fuzzy search but you’ll have to put all the content you want to be searchable in a json along with the url it’s in so when you click on a result, you can redirect the user to the page you want.
- Fuse.js - a powerful, lightweight fuzzy-search library, with zero dependencies
- Fuse.js is a powerful, lightweight fuzzy-search library, with zero dependencies
- What is your go to client-side fuzzy searching library?
- Best solution for typing suggestions with a huge array?
-
Search box and results component
Check the docs for your component system's text input component. Not all have specific autocomplete Search components like MUI, you might have to make your own out of your library's text input and menu components plus a fuzzy search library like Fuse.js.
What are some alternatives?
flexsearch - Next-Generation full text search library for Browser and Node.js
stork - 🔎 Impossibly fast web search, made for static sites.
Next.js - The React Framework
doctave - A batteries-included developer documentation site generator
fuzzyset.js - fuzzyset.js - A fuzzy string set for javascript
elasticlunr-rs - A partial port of elasticlunr to Rust. Intended to be used for generating compatible search indices.
node-sqlite3 - SQLite3 bindings for Node.js
faustjs - Faust.js™ - The Headless WordPress Framework
fzf-for-js - Do fuzzy matching using FZF algorithm in JavaScript
lunr.js - A bit like Solr, but much smaller and not as bright
Vue.js - This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core