weaviate-client
    Preparing search index...

    Class MetricsManager<T, P>

    Type Parameters

    Index

    Constructors

    Methods

    • Define the metrics to be returned for a BOOL or BOOL_ARRAY property when aggregating over a collection.

      If none of the arguments are provided then all metrics will be returned.

      Parameters

      • Optionalmetrics: ("count" | "totalTrue" | "totalFalse" | "percentageTrue" | "percentageFalse")[]

        The metrics to return.

      Returns MetricsBoolean<P>

      The metrics for the property.

    • Define the metrics to be returned for a DATE or DATE_ARRAY property when aggregating over a collection.

      If none of the arguments are provided then all metrics will be returned.

      Parameters

      • Optionalmetrics: ("mode" | "count" | "median" | "maximum" | "minimum")[]

        The metrics to return.

      Returns MetricsDate<P>

      The metrics for the property.

    • Define the metrics to be returned for an INT or INT_ARRAY property when aggregating over a collection.

      If none of the arguments are provided then all metrics will be returned.

      Parameters

      • Optionalmetrics: ("mode" | "count" | "sum" | "mean" | "median" | "maximum" | "minimum")[]

        The metrics to return.

      Returns MetricsInteger<P>

      The metrics for the property.

    • Define the metrics to be returned for a NUMBER or NUMBER_ARRAY property when aggregating over a collection.

      If none of the arguments are provided then all metrics will be returned.

      Parameters

      • Optionalmetrics: ("mode" | "count" | "sum" | "mean" | "median" | "maximum" | "minimum")[]

        The metrics to return.

      Returns MetricsNumber<P>

      The metrics for the property.

    • Define the metrics to be returned for a TEXT or TEXT_ARRAY property when aggregating over a collection.

      If none of the arguments are provided then all metrics will be returned.

      Parameters

      • Optionalmetrics: ("count" | "topOccurrencesOccurs" | "topOccurrencesValue")[]

        The metrics to return.

      • OptionalminOccurrences: number

        The how many top occurrences to return.

      Returns MetricsText<P>

      The metrics for the property.