0.2.1 • Published 5 years ago

node-fist v0.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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.

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago