0.2.0 • Published 7 years ago

dashindex v0.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

-.index

Inverse Index Builder for full text searching in any Document Database

Usage

Install dashindex:

npm install dashindex

Use in your NodeJS App:

const dashindex = require('dashindex'); //Import DashIndex
const data = "The quick brown fox jumps over the lazy dog"; //Sentence/Paragraph/Essay to build index for
var result = dashindex.buildIndex(data); // Build index for data
// { KK: 1, BRN: 1, FKS: 1, JMP: 1, LS: 1, TK: 1 }
// SAVE TO DATABASE
var query = dashindex.buildQuery(data);
// [ 'KK', 'BRN', 'FKS', 'JMP', 'LS', 'TK' ]
// DISPATCH QUERY TO DATABASE

For a reference implementation on RethinkDB, see: -.index.rethinkdb

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago