@coveo/headless
    Preparing search index...

    Interface RecentQueriesState

    A scoped and simplified part of the headless state that is relevant to the RecentQueriesList controller.

    interface RecentQueriesState {
        analyticsEnabled: boolean;
        maxLength: number;
        queries: string[];
    }
    Index

    Properties

    analyticsEnabled: boolean

    Whether analytics & tracking are enabled. In the case where it is disabled, it is recommended not to save recent queries.

    maxLength: number

    The maximum number of queries to retain in the list.

    queries: string[]

    The list of recent queries.