TextIndex Class

Packages > @anticrm/core > TextIndex

Signature:

export declare class TextIndex implements DomainIndex 

Implements: DomainIndex

Constructors

List of constructors for this class
Constructor Modifiers Description
(constructor)(modelDb, storage) Constructs a new instance of the TextIndex class

Methods

List of methods on this class
Method Modifiers Description
onCreate(ctx, create)
tx(ctx, tx)

Constructors

TextIndex.(constructor)

Constructs a new instance of the TextIndex class

Signature:

constructor(modelDb: Model, storage: Storage);

Parameters

List of parameters
Parameter Type Description
modelDb Model
storage Storage

Methods

onCreate

Signature:

onCreate(ctx: TxContext, create: CreateTx): Promise<any>;

Parameters

List of parameters
Parameter Type Description
ctx TxContext
create CreateTx

Returns:

Promise<any>

tx

Signature:

tx(ctx: TxContext, tx: Tx): Promise<any>;

Parameters

List of parameters
Parameter Type Description
ctx TxContext
tx Tx

Returns:

Promise<any>