Skip to content

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.

Basic Usage

var writer = require("indexing/v4/writer");
var searcher = require("indexing/v4/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 ="index1", "lucene");


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