An open API service indexing awesome lists of open source software.

https://github.com/triole/lunr-indexer

lunr-indexer builds a lunar search index from all md files inside a folder, it comes along as static binary
https://github.com/triole/lunr-indexer

indexer lunr search-engine

Last synced: 9 months ago
JSON representation

lunr-indexer builds a lunar search index from all md files inside a folder, it comes along as static binary

Awesome Lists containing this project

README

          

# Lunr Indexer ![test](https://github.com/triole/lunr-indexer/actions/workflows/test.yaml/badge.svg) ![build](https://github.com/triole/lunr-indexer/actions/workflows/build.yaml/badge.svg)

- [Synopsis](#synopsis)
- [Index JSON Layout](#index-json-layout)
- [Help & Usage](#help--usage)
- [Disclaimer](#disclaimer)

## Synopsis

Lunr Indexer recursively finds all markdown files inside a directory and builds a [lunrjs](https://lunrjs.com/) search index from them. It is blazingly fast and can run a watcher that reindexes automatically on changes inside the folder.

## Index JSON Layout

To check the layout of the resulting index json have a look at the test data inside the repo. For example [here](https://github.com/triole/lunr-indexer/blob/master/testdata/set1/assert.json).

## Help & Usage

For help and more information consider running

```shell
# simple usage
$ lunr-indexer /path/to/md_files

# custom output file
$ lunr-indexer /path/to/md_files -o /path/to/output.json

# running the watcher
$ lunr-indexer /path/to/md_files -w

# help and more information
$ lunr-indexer -h
```

## Disclaimer

Warning. Use this software at your own risk. I may not be hold responsible for any data loss, starving your kittens or losing the bling bling powerpoint presentation you made to impress human resources with the efficiency of your employee's performance.