Indexing Writer

The Indexing Writer is an object which can store a text content with additional parameters for later high-performant free-text search. This version is backed by the Apache Lucene.

Version 3.x

Basic Usage

1
2
3
4
5
6
7
var writer = require('indexing/v3/writer');
var searcher = require('indexing/v3/searcher');

writer.add("index1", "file1", "apache lucene", new Date(), {"name1":"value1"});
writer.add("index1", "file2", "lucene - the search engine", new Date(), {"name2":"value2"});

var found = searcher.search("index1", "lucene");

Definition

Functions


Function Description Returns
add(index, location, contents, lastModified, parameters) Adds a document contents with the given location and parameters to an index -

Compatibility

Rhino Nashorn V8
βœ… βœ… βœ…
Edit