ruflin / Elastica

Elastica is a PHP client for elasticsearch
http://elastica.io/
MIT License
2.26k stars 733 forks source link

Hi addType() not available #2202

Closed sunnystone85 closed 3 months ago

sunnystone85 commented 3 months ago

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