@gradientedge/commercetools-utils
    Preparing search index...

    Interface ReviewRatingStatistics

    interface ReviewRatingStatistics {
        averageRating: number;
        count: number;
        highestRating: number;
        lowestRating: number;
        ratingsDistribution: any;
    }
    Index

    Properties

    averageRating: number

    Average rating of one target This number is rounded with 5 decimals.

    count: number

    Number of ratings taken into account

    highestRating: number

    Highest rating of one target

    lowestRating: number

    Lowest rating of one target

    ratingsDistribution: any

    Full distribution of the ratings. The keys are the different ratings and the values are the count of reviews having this rating. Only the used ratings appear in this object.