Elasticsearch 7.x not supported?

  • kishanraval
    Participant
    4 years, 8 months 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?

    wpsolr
    Keymaster
    4 years, 8 months ago #13704

    What is your Elasticsearch version? We only support ES from version 5, and better 6.

    kishanraval
    Participant
    4 years, 8 months ago #13705

    Hi,

    The Elasticsearch that I am using is version 7.2.0. Do you not support versions above 6?

    wpsolr
    Keymaster
    4 years, 8 months ago #13719

    Thanks. We could replicate the same error on Elasticsearch 7.3.0

    Looking for a quick fix …

    wpsolr
    Keymaster
    4 years, 8 months ago #13733

    WPSOLR 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

    michaelfairchild
    Participant
    4 years, 8 months ago #13854

    Per 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.

    wpsolr
    Keymaster
    4 years, 8 months ago #13855

    The master branch is compatible with 7.x only.

    wpsolr
    Keymaster
    4 years, 8 months ago #13857

    It 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.

    wpsolr
    Keymaster
    4 years, 7 months ago #14025

    https://www.wpsolr.com/forums/topic/release-21-6/ now supports Elasticsearch 7. (tested with Elasticsearch 7.3.1)

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.