Core
Framework v2.x
2

Constructor #

Deprecated since 2.14.0

Creates a new Koncorde engine instance.

Arguments #

constructor(options?: JSONObject);

ArgumentsTypeDescription
options
JSONObject
Optional settings

options #

OptionsTypeDefaultDescription
maxConditions
integer
50Maximum number of conditions a filter can hold, once decomposed. The deprecated maxMinTerms name is also accepted
regExpEngine
string
re2Regular expression engine: re2 (safe, but not fully compatible with PCREs) or js (vulnerable to catastrophic backtracking, unsafe with regular expressions provided by end-users)
seed
ArrayBuffer
random32 bytes buffer used as a fixed random seed, to make filter unique identifiers predictable

Usage #

import { Koncorde } from 'kuzzle';

const koncorde = new Koncorde({ maxConditions: 100 });