ElasticSearcher\Abstracts\AbstractQuery::searchIn PHP Метод

searchIn() публичный Метод

Define on which indices and types the query should be run.
public searchIn ( string | array $index, null | string | array $type = null )
$index string | array
$type null | string | array
    public function searchIn($index, $type = null)
    {
        // Reset the current state, in case the same instance is re-used.
        $this->indices = [];
        $this->types = [];
        $this->searchInIndices((array) $index);
        if ($type !== null) {
            $this->searchInTypes((array) $type);
        }
    }