TextIndex Class
Packages > @anticrm/core > TextIndex
Signature:
export declare class TextIndex implements DomainIndex
Implements: DomainIndex
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(modelDb, storage) | Constructs a new instance of the TextIndex class |
Methods
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
Parameter | Type | Description |
---|---|---|
modelDb | Model | |
storage | Storage |
Methods
onCreate
Signature:
onCreate(ctx: TxContext, create: CreateTx): Promise<any>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | TxContext | |
create | CreateTx |
Returns:
Promise<any>
tx
Signature:
tx(ctx: TxContext, tx: Tx): Promise<any>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | TxContext | |
tx | Tx |
Returns:
Promise<any>