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.
- Module:
indexing/v4/writer
- Alias:
indexing/writer
- Definition: https://github.com/eclipse/dirigible/issues/110
- Source: /indexing/v4/writer.js
- Facade: IndexingFacade
- Status:
stable
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 = searcher.search("index1", "lucene");
Functions
Function | Description | Returns |
---|---|---|
add(index, location, contents, lastModified, parameters) | Adds a document contents with the given location and parameters to an index | - |