protected function getCoreMetrics(ResponseAdapter $lukeData, array $fields)
    {
        $coreMetrics = [
            'numberOfDocuments' => $lukeData->index->numDocs,
            'numberOfDeletedDocuments' => $lukeData->index->deletedDocs,
            'numberOfTerms' => $lukeData->index->numTerms,
            'numberOfFields' => count($fields)
        ];

        return $coreMetrics;
    }
protected function getCoreMetrics(ResponseAdapter $lukeData, array $fields)
    {
        $coreMetrics = [
            'numberOfDocuments' => $lukeData->index->numDocs,
            'numberOfDeletedDocuments' => $lukeData->index->deletedDocs,
            'numberOfTerms' => $lukeData->index->numTerms,
            'numberOfFields' => count($fields)
        ];

        return $coreMetrics;
    }
protected function getCoreMetrics ( ResponseAdapter $ lukeData , array $ fields ) { $ coreMetrics = [ 'numberOfDocuments' => $ lukeData -> index -> numDocs , 'numberOfDeletedDocuments' => $ lukeData -> index -> deletedDocs , 'numberOfTerms' => $ lukeData -> index -> numTerms , 'numberOfFields' => count ( $ fields ) ] ; return $ coreMetrics ; }
Gets general core metrics.

@param ResponseAdapter $lukeData Luke index data
@param array $fields Fields metrics

@return array An array of core metrics
Gets general core metrics .