minisearch
lunr.js
Our great sponsors
minisearch | lunr.js | |
---|---|---|
10 | 14 | |
4,081 | 8,778 | |
- | - | |
7.6 | 0.0 | |
19 days ago | almost 2 years ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
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.
minisearch
-
Character and Subsector generators for Classic Traveller, with TAS Forms!
I wrote an online catalog a while back (and I need to get back on adding graphics and products at some point). It’s written using Eleventy and the minisearch library. The source and data are available on Github if you want to see how I did things. I’m not a professional web designer either, but it was a fun project.
- What is your go to client-side fuzzy searching library?
-
Meilisearch v1.0 – the open-source Rust alternative to Algolia and Elasticsearch
You could have a look at https://github.com/lucaong/minisearch/
-
What do you use for site search? Custom built solution? Meilisearch? Algolia?
If you're dealing with thousands of records or less, searching titles and summaries rather than long bodies of text, I recommend looking into client-side solutions. Nothing beats the responsiveness of search-as-you-type entirely on the client side. It can be fairly sophisticated fulltext search. For example, I've built had great success with MiniSearch.
- MiniSearch – fuzzy match search in TypeScript
- Minisearch: Tiny, powerful JavaScript full-text search engine for browser, Node
-
Lyra: Fast, in-memory, typo-tolerant, full-text search engine in TypeScript
I quite enjoy minisearch[1] which is also 0 dependencies, actively maintained, and I expect would work well in a worker environment. I dropped it into a service worker and plugged it with a simple point in polygon script to enable geosearch for a recent project[2] and it played v. nicely.
[1] https://github.com/lucaong/minisearch
-
I highly recommend the Omnisearch plugin.
No magic here, the underlying engine is Minisearch, which uses the BM25 algorithm (the de facto standard among search libraries). Omnisearch adds a magic sauce during indexing by converting notes into custom objects, with the following fields: - body (the plain markdown text) - filename & yaml aliases - level 1 headers - level 2 headers - level 3 headers
-
For lovers of instant search and Ctrl+K menus, we made an open-source tool to add that to your website in 2 steps: 1. Enter your URL 2. Add code snippet to <head>. Links and code in comments!
It's actually really simple! Minisearch did most of the heavy lifting so all we needed to do was the crawling, storing and UI etc. I'd check that out if you're interested in the search part!
-
I made a tool to add instant search to your site in 2 steps: 1. Enter your URL 2. Add code snippet to <head>. Links in comments!
We use MiniSearch for searching, while fast-fuzzy is used for highlighting of detected search terms.
lunr.js
-
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 do people make basic AWS sites so cost effectively? How do they limit users from making their budget insane? Am I missing something?
Also search results can be pre-indexed and stored in a Json file. Just as an example. https://lunrjs.com/
-
Transcripts
Would anyone be willing to help make this more accessible and clean? I have some front-end dev experience, but it would be cool to work together with people to make sure we have something that makes sense and looks nicer than what I could do myself. As for functionality, searching on GitHub directly seems to work pretty well, but it might be better to have a page and a search feature maybe using something like Lunr. I would also like to create some sort of easy "API" in case Matt wants to embed some transcripts on his website. It would be cool if it would be as easy as just adding a blank div with a special id and a data attribute with the episode number on the Squarespace page.
-
Search my site?
which is open source, appears to be free, and claims that it can run in the browser
-
Meilisearch v1.0 – the open-source Rust alternative to Algolia and Elasticsearch
Is there a way to run it in WASM, to get something like Lunr[1]? We prefer to do our (small-index, <2MB) search client-side for a bunch of reasons, currently using Lunr.js, but it's a bit annoying and the typeahead search is something I improvised and not really official.
[1] https://lunrjs.com/
-
How can I search contents of a Secure Note?
To ensure cross-platform compatibility, Bitwarden uses Lunr.js for searching. This search engine is a bit quirky, and difficult to get used to.
- Best library to implement fuzzy search for a large database?
-
Autocomplete
Slightly more js work required, but this should a more customisable solution: https://lunrjs.com/
- Self-Contained Search for Archived Static Site?
-
Old World Data Explorer: now with search!
OWDX runs entirely in the browser; as such, it cannot offer cutting-edge search functionality of the sort you'd find in a search engine or an expensive piece of enterprise software. The search library I'm using — lunr.js, for anyone who's interested — does, however, offer a nice set of core functionality and a modest but handy query language.
What are some alternatives?
flexsearch - Next-Generation full text search library for Browser and Node.js
orama - 🌌 Fast, dependency-free, full-text and vector search engine with typo tolerance, filters, facets, stemming, and more. Works with any JavaScript runtime, browser, server, service!
itemsjs - Extremely fast faceted search engine in JavaScript - lightweight, flexible, and simple to use
fuzzysort - Fast SublimeText-like fuzzy search for JavaScript.
obsidian-omnisearch - A search engine that "just works" for Obsidian. Supports OCR and PDF indexing.
whoosh - Pure-Python full-text search library
regex-benchmark - It's just a simple regex benchmark of different programming languages.
Lyra - A simple to use, composable, command line parser for C++ 11 and beyond