we are using Elastica 6.x before, now we upgrade to 7.x.
But it report an error as : call to undefined method Elastica\search::addType().
So the function addType() is not existed? is there any other function instead?
the code as below:
$search = new Elastica\Search($this->getClient());
$search->addIndex($index_name)->addType($doc_type);
Good day,
we are using Elastica 6.x before, now we upgrade to 7.x. But it report an error as : call to undefined method Elastica\search::addType(). So the function addType() is not existed? is there any other function instead?
the code as below: $search = new Elastica\Search($this->getClient()); $search->addIndex($index_name)->addType($doc_type);
Thanks