Hi addType() not available #2203
Closed
sunnystone85
started this conversation in
General
Replies: 2 comments 6 replies
-
Are you aware of the type removal in Elasticsearch? https://www.elastic.co/guide/en/elasticsearch/reference/7.17/removal-of-types.html What version of Elasticsearch are you running? |
Beta Was this translation helpful? Give feedback.
1 reply
-
The Elasticsearch not upgraded, but due to our framework upgrade the dependency of Elastica need to upgrade to 7.x, but the function addType() was removed, just would like to find out a alternative way in Elastica 7.x... |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions