weaviate-client
    Preparing search index...

    Interface Metrics<T>

    interface Metrics<T> {
        aggregate: <P extends string>(property: P) => MetricsManager<T, P>;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    aggregate: <P extends string>(property: P) => MetricsManager<T, P>

    Define the metrics to be returned based on a property when aggregating over a collection.

    Use this aggregate method to define the name to the property to be aggregated on. Then use the text, integer, number, boolean, date_, or reference methods to define the metrics to be returned.

    See the docs for more details!