MiniSearch
Web framework / library · Free
A small JavaScript full-text engine: indexes local documents and provides search, ranking, and suggestions in the interface.
Also known as: lucaong/minisearch; mini-search; javascript-search-engine

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Index documents for browser search
- Connect search/suggestions to input and result displays
Example workflow
A possible workflow; this is not a report of hands-on testing.
Index documents for browser search.
Before you start
- Web application source code and the intended workflow.
- The project's framework and runtime version.
Steps
- Describe document fields and build a local index.
- Connect search/suggestions to input and result displays.
- Add real data and error handling; check the production build.
Check your result
- The workflow works after a page refresh and with invalid data.
- The bundle, server rendering, and supported browsers suit the project.
Choosing MiniSearch
Index documents for browser search
Choose this when
- Index documents for browser search
- Connect search/suggestions to input and result displays
Requirements
- The dataset and index must fit in the available memory; define fields/storeFields.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: MIT for the code; dependencies have separate licenses.
- Without a custom processTerm, morphological stemming and stop-word filtering are not added automatically.
Frequently asked questions
What can you use for free in MiniSearch?
Code and local use under MIT.
What additional costs might arise with MiniSearch?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for MiniSearch?
MIT for the code; dependencies have separate licenses.
How do you get started with MiniSearch?
Describe document fields and build a local index. Connect search/suggestions to input and result displays. Add real data and error handling; check the production build.
How does MiniSearch index fields and process words by default?
fields defines indexed text, while storeFields defines fields returned with results; extractField retrieves nested values. Prefix/fuzzy matching, field boosts, and filters apply to search and autoSuggest. The default tokenizer splits on Unicode spaces/punctuation, and processTerm lowercases terms without stemming or a stop-word list. tokenize/processTerm can be configured separately for indexing and queries.
License
MIT for the code; dependencies have separate licenses.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- MiniSearch
- web
- Development