getMapping() public méthode

See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html
public getMapping ( string $index = '_all', string $type = null ) : mixed
$index string
$type string
Résultat mixed
Exemple #1
0
 /**
  * Overridden to return exact type mapping if possible
  *
  * @param string $index
  * @param string $type
  * @param string $data Type of data to be retrieved
  * @return array
  * @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-mapping.html
  */
 public function getMapping($index = '_all', $type = '_all', $data = 'properties')
 {
     $mapping = parent::getMapping($index, $type);
     if ($index !== '_all' && $type !== '_all') {
         $mapping = $mapping[$index]['mappings'][$type][$data];
     }
     return $mapping;
 }