Accessing Analyzers

These functions implement the HTTP API for accessing Analyzers.

Analyzers were introduced in ArangoDB 3.5 and are not supported by earlier versions of ArangoDB.

database.analyzer

database.analyzer(analyzerName): Analyzer

Returns an Analyzer instance representing the Analyzer with the given Analyzer name.

Examples

const db = new Database();
const analyzer = db.analyzer("some-analyzer");
const info = await analyzer.get();

database.listAnalyzers

async database.listAnalyzers(): Array<Object>

Fetches all Analyzers visible in the database and returns an array of Analyzer descriptions.

Examples

const db = new Database();
const analyzers = await db.listAnalyzers();
// analyzers is an array of Analyzer descriptions

database.analyzers

async database.analyzers(): Array<Analyzer>

Fetches all Analyzers visible in the database and returns an array of Analyzer instances for those Analyzers.

Examples

const db = new Database();
const analyzers = await db.analyzers();
// analyzers is an array of Analyzer instances