Elastica\Result::getType PHP Method

getType() public method

Returns the type of the result.
public getType ( ) : string
return string Result type
    public function getType()
    {
        return $this->getParam('_type');
    }

Usage Example

 /**
  * Returns the ElasticSearch type name from which this document came from.
  *
  * If this is a new document, this function returns null
  *
  * @return string|nulll
  */
 public function type()
 {
     if ($this->_result) {
         return $this->_result->getType();
     }
     return null;
 }
All Usage Examples Of Elastica\Result::getType