protected function getFields(ResponseAdapter $lukeData, $limitNote)
    {
        $rows = [];

        $fields = (array)$lukeData->fields;
        foreach ($fields as $name => $field) {
            $rows[$name] = [
                'name' => $name,
                'type' => $field->type,
                'docs' => isset($field->docs) ? $field->docs : 0,
                'terms' => isset($field->distinct) ? $field->distinct : $limitNote
            ];
        }
        ksort($rows);

        return $rows;
    }
protected function getFields(ResponseAdapter $lukeData, $limitNote)
    {
        $rows = [];

        $fields = (array)$lukeData->fields;
        foreach ($fields as $name => $field) {
            $rows[$name] = [
                'name' => $name,
                'type' => $field->type,
                'docs' => isset($field->docs) ? $field->docs : 0,
                'terms' => isset($field->distinct) ? $field->distinct : $limitNote
            ];
        }
        ksort($rows);

        return $rows;
    }
protected function getFields ( ResponseAdapter $ lukeData , $ limitNote ) { $ rows = [ ] ; $ fields = ( array ) $ lukeData -> fields ; foreach ( $ fields as $ name => $ field ) { $ rows [ $ name ] = [ 'name' => $ name , 'type' => $ field -> type , 'docs' => isset ( $ field -> docs ) ? $ field -> docs : 0 , 'terms' => isset ( $ field -> distinct ) ? $ field -> distinct : $ limitNote ] ; } ksort ( $ rows ) ; return $ rows ; }
Gets field metrics.

@param ResponseAdapter $lukeData Luke index data
@param string $limitNote Note to display if there are too many documents in the index to show number of terms for a field

@return array An array of field metrics
Gets field metrics .