Smile\ElasticsuiteCore\Index\Index::__construct PHP Method

__construct() public method

Instanciate a new index.
public __construct ( string $identifier, string $name, array $types, string $defaultSearchType, boolean $needInstall = false )
$identifier string Index real name.
$name string Index real name.
$types array Index current types.
$defaultSearchType string Default type used in searches.
$needInstall boolean Indicates if the index needs to be installed.
    public function __construct($identifier, $name, array $types, $defaultSearchType, $needInstall = false)
    {
        $this->identifier = $identifier;
        $this->name = $name;
        $this->types = $types;
        $this->needInstall = $needInstall;
        $this->defaultSearchType = $defaultSearchType;
    }