Elastica\Type\Mapping::getProperties PHP Method

getProperties() public method

Gets the mapping properties.
public getProperties ( ) : array
return array $properties Properties
    public function getProperties()
    {
        return $this->getParam('properties');
    }

Usage Example

 /**
  * Add a mapping for the location of the photograph
  */
 public function updateElasticsearchMapping(\Elastica\Type\Mapping $mapping)
 {
     // get the properties of the individual fields as an array
     $properties = $mapping->getProperties();
     // enable tags to be faceted
     $properties['RawValue'] = array('type' => 'string', 'index' => 'not_analyzed');
     // set the new properties on the mapping
     $mapping->setProperties($properties);
     return $mapping;
 }
All Usage Examples Of Elastica\Type\Mapping::getProperties