Elasticsearch 7.x not supported?
- kishanravalParticipant5 years, 1 month ago #13700
Hi,
While trying to connect to elastic search hosted on another server, I get this error message.
“unknown key [number_of_shards] for create index”
Can you please help in resolving the issue?
kishanravalParticipant5 years, 1 month ago #13705Hi,
The Elasticsearch that I am using is version 7.2.0. Do you not support versions above 6?
wpsolrKeymaster5 years, 1 month ago #13733WPSOLR is using the Elastica client library to manage calls to Elasticsearch. But the state about Elasticsearch 7.x support is not clear: https://github.com/ruflin/Elastica/issues/1649
michaelfairchildParticipant5 years ago #13854Per https://github.com/ruflin/Elastica/issues/1649#issuecomment-523792063 7.x is supported in the master branch. Is there any chance to get an updated version using the master branch? I’d be willing to test it.
wpsolrKeymaster5 years ago #13857It appears that WPSOLR cannot continue to use https://github.com/ruflin/Elastica/ as its Elasticsearch php client library. Elastisearch 7.x is only a few weeks old, but Elastica’s master branch is already not retro-compatible with Elasticsearch indexes created with version 5 and 6.
An option would be to use several versions of Elastica in WPSOLR, but I suspect this would prove to be difficult. And what will happen with Elasticsearch 8.x, which is already announced as a breaking update (total removal of types)?
I will therefore investigate the replacement of Elastica by the official low-level API https://github.com/elastic/elasticsearch-php
To be honest, this is uncharted territory.
wpsolrKeymaster4 years, 12 months ago #14025https://www.wpsolr.com/forums/topic/release-21-6/ now supports Elasticsearch 7. (tested with Elasticsearch 7.3.1)
You must be logged in to reply to this topic.