Node.js client library for Fist full text search
npm install node-fist
Only the LTS and Current Node.js versions are supported. Other versions may work, but are not actively tested.
const { FistConnection } = require('node-fist')
const index = new FistConnection('localhost', 5575)
index.index('doc_1', 'the quick brown fox jumped over the lazy dog')
index.search('lazy dog', (err, documents) => {
if (err) return console.error(err)
console.log(documents) // => ['doc_1']
})
index.close()
Released under the terms of the MIT license. See LICENSE for more details.