Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface::getType PHP Method

getType() public method

See const above for available types.
public getType ( ) : string
return string
    public function getType();

Usage Example

Example #1
0
 /**
  * Indicates if a field is searchable.
  *
  * @SuppressWarnings(PHPMD.UnusedPrivateMethod)
  *
  * @param FieldInterface $field Mapping field.
  *
  * @return boolean
  */
 private function isSearchableFieldCallback(FieldInterface $field)
 {
     return $field->isSearchable() && $field->getType() == FieldInterface::FIELD_TYPE_STRING;
 }