Full-Text Search engine for NodeJS
Node-FT adds basic in-memory Full-Text search capabilities to Node. Supporting:
- Document Indexing
- Results Sorting
- AND / OR Operations
- Nested Expresions:
First and (whole or world or (another word))
=======
Installation
npm install node-ft
======= Basic Usage
var nodeFT= ; var inx = ; inxindex'1' "this is some text";inxindex'2' "this is some more text"; var docs = inx;
Document storage
inxindex'1' "this is some text" value: 12 some: 'this is a doc' ; var docs = inx; console;
Sort Results
var docs = inx;
Delete Document
inx;
OR expressions
var docs = inx;
Nested Expressions
var docs = inx;
Clear Index
inxclear;
Get Document Count
var docCount = inx;