PHP Class Cake\ElasticSearch\Datasource\MappingSchema

Afficher le fichier Open project: cakephp/elastic-search

Protected Properties

Свойство Type Description
$data array The raw mapping data from elasticsearch
$name string The name of the type this mapping data is for.

Méthodes publiques

Méthode Description
__construct ( string $name, array $data ) Constructor
field ( string $name ) : array | null Get the mapping information for a single field.
fieldType ( string $name ) : string | null Get the field type for a field.
fields ( ) : array Get the field names in the mapping.
name ( ) : string Get the name of the type for this mapping.

Method Details

__construct() public méthode

Constructor
public __construct ( string $name, array $data )
$name string The name of the type of the mapping data
$data array The mapping data from elasticsearch

field() public méthode

Can access nested fields through dot paths.
public field ( string $name ) : array | null
$name string The path to the field you want.
Résultat array | null Either field mapping data or null.

fieldType() public méthode

Can access nested fields through dot paths.
public fieldType ( string $name ) : string | null
$name string The path to the field you want.
Résultat string | null Either type information or null

fields() public méthode

Will only return the top level fields. Nested object field names will not be included.
public fields ( ) : array
Résultat array

name() public méthode

Get the name of the type for this mapping.
public name ( ) : string
Résultat string

Property Details

$data protected_oe property

The raw mapping data from elasticsearch
protected array $data
Résultat array

$name protected_oe property

The name of the type this mapping data is for.
protected string $name
Résultat string