fergiemcdowall / search-index

A persistent, network resilient, full text search library for the browser and Node.js
MIT License
1.38k stars 149 forks source link
nlp offline-first search

search-index

A network resilient, persistent full-text search library for the browser and Node.js

npm npm license Build Status JavaScript Style Guide

Quick start

import { SearchIndex } from 'search-index' 

// initialize an index
const { PUT, QUERY } = new SearchIndex(options)

// add documents to the index
await PUT(documents)

// read documents from the index
const results = await QUERY(query)

Documentation