Contracts/IndexStats.php

meilisearch-php · src/Contracts/IndexStats.php · php · MIT
search

Pure PHP DTO for Meilisearch index statistics and monitoring data

// Source: https://github.com/meilisearch/meilisearch-php | License: MIT | Copyright 2019-2025 Meili SAS
// Provided via justclaw.it.com; keep this notice with the code.
<?php

declare(strict_types=1);

namespace Meilisearch\Contracts;

/**
 * @phpstan-type RawIndexStats array{
 *     numberOfDocuments: non-negative-int,
 *     rawDocumentDbSize: non-negative-int,
 *     avgDocumentSize: non-negative-int,
 *     isIndexing: bool,
 *     numberOfEmbeddings: non-negative-int,
 *     numberOfEmbeddedDocuments: non-negative-int,
 *     fieldDistribution: array<non-empty-string, non-negative-int>,
 *     indexSize: non-negative-int,
 *     usedIndexSize: non-negative-int
 * }
 */
final class IndexStats
{
    /**
     * @param non-negative-int                          $numberOfDocuments
     * @

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key