Type Alias TaskObject

TaskObject: Omit<EnqueuedTaskObject, "taskUid"> & {
    batchUid: number | null;
    details: {
        canceledTasks?: number;
        deletedDocuments?: number;
        deletedTasks?: number;
        displayedAttributes?: DisplayedAttributes;
        distinctAttribute?: DistinctAttribute;
        filterableAttributes?: FilterableAttributes;
        indexedDocuments?: number;
        matchedTasks?: number;
        originalFilter?: string;
        primaryKey?: string;
        providedIds?: number;
        rankingRules?: RankingRules;
        receivedDocuments?: number;
        searchableAttributes?: SearchableAttributes;
        sortableAttributes?: SortableAttributes;
        stopWords?: StopWords;
        swaps?: SwapIndexesParams;
        synonyms?: Synonyms;
    };
    duration: string;
    error: MeiliSearchErrorResponse
    | null;
    finishedAt: string;
    startedAt: string;
    uid: number;
}

Type declaration

  • batchUid: number | null

    The UID of the batch that the task belongs to (null for enqueued tasks)

  • details: {
        canceledTasks?: number;
        deletedDocuments?: number;
        deletedTasks?: number;
        displayedAttributes?: DisplayedAttributes;
        distinctAttribute?: DistinctAttribute;
        filterableAttributes?: FilterableAttributes;
        indexedDocuments?: number;
        matchedTasks?: number;
        originalFilter?: string;
        primaryKey?: string;
        providedIds?: number;
        rankingRules?: RankingRules;
        receivedDocuments?: number;
        searchableAttributes?: SearchableAttributes;
        sortableAttributes?: SortableAttributes;
        stopWords?: StopWords;
        swaps?: SwapIndexesParams;
        synonyms?: Synonyms;
    }
  • duration: string
  • error: MeiliSearchErrorResponse | null
  • finishedAt: string
  • startedAt: string
  • uid: number