An implementation of the AnalyticsStrategy which logs search events and queries to a ClickHouse database.

Implements

Methods

  • Retrieves the chart data for the given input.

    Parameters

    • input: SearchAnalyticsChartInput

    Returns Promise<SearchAnalyticsChartData>

  • Retrieves the event data for the given input.

    Parameters

    • input: SearchAnalyticsEventInput

    Returns Promise<SearchAnalyticsEventData>

  • Retrieves the query data for the given input.

    Parameters

    • input: SearchAnalyticsQueryInput

    Returns Promise<SearchAnalyticsQueryData>

  • Parameters

    • injector: Injector

    Returns Promise<void>

    Defines setup logic to be run during application bootstrap. Receives the Injector as an argument, which allows application providers to be used as part of the setup. This hook will be called on both the main server and the worker processes.

    async init(injector: Injector) {
    const myService = injector.get(MyService);
    await myService.doSomething();
    }
  • Logs a search event: either a list view or a result click.

    Parameters

    Returns Promise<void>