jh-search-index

A text search index module for Node.js. Search-index allows applications to add, delete and retrieve documents from a corpus. Retrieved documents are ordered by tf-idf relevance, filtering on metadata, and field weighting


Keywords
natural, language, search, index, lucene, nlp, offline-first
License
MIT
Install
npm install jh-search-index@1.1.0

Documentation

search-index

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

Gitter npm npm license Build Status JavaScript Style Guide

Quick start

const si = require('search-index')

// initialize an index
const { PUT, QUERY } = await si()

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

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

Documentation