Interface IndexObject<Index>

Object format of search index when serialized

interface IndexObject<Index> {
    averageFieldLength: number[];
    dirtCount?: number;
    documentCount: number;
    documentIds: Record<string, any>;
    fieldIds: Record<string, number>;
    fieldLength: Record<string, number[]>;
    index: [string, Record<string, SerializedIndexEntry>][];
    nextId: number;
    storedFields: Record<string, Index>;
    version: number;
}

Type Parameters

  • Index extends Record<string, any> = Record<never, never>

    The type of the documents being indexed.

Properties

averageFieldLength: number[]
dirtCount?: number
documentCount: number
documentIds: Record<string, any>
fieldIds: Record<string, number>
fieldLength: Record<string, number[]>
index: [string, Record<string, SerializedIndexEntry>][]
nextId: number
storedFields: Record<string, Index>
version: number