Skip to content
This repository has been archived by the owner on Sep 29, 2019. It is now read-only.
/ node-fist Public archive

Node.js client library for Fist full text search

License

Notifications You must be signed in to change notification settings

00-matt/node-fist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-fist

Node.js client library for Fist full text search

Installation

npm install node-fist

Support and Requirements

Only the LTS and Current Node.js versions are supported. Other versions may work, but are not actively tested.

Usage

Connecting
const { FistConnection } = require('node-fist')

const index = new FistConnection('localhost', 5575)
Indexing
index.index('doc_1', 'the quick brown fox jumped over the lazy dog')
Searching
index.search('lazy dog', (err, documents) => {
  if (err) return console.error(err)
  console.log(documents) // => ['doc_1']
})
Disconnecting
index.close()

License

Released under the terms of the MIT license. See LICENSE for more details.

About

Node.js client library for Fist full text search

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published