plastic icon indicating copy to clipboard operation
plastic copied to clipboard

Elastic Search 6 Support

Open xembill opened this issue 6 years ago • 6 comments

How can ı use with Elastic search 6. version ?

xembill avatar Mar 05 '18 11:03 xembill

I made the mistake of installing version 6, and wasn't able to install plastic. Now I have no idea how to uninstall and install version 5.3

ablishek avatar Mar 08 '18 09:03 ablishek

As a temporary solution I ended up forcing elasticsearch/elasticsearch package to the 6.0 version in composer.json like this: "elasticsearch/elasticsearch": "6.0.1 as 5.3.0"

andrey-bahrachev avatar Mar 08 '18 12:03 andrey-bahrachev

for now @andrey-bahrachev's comment is the best solution

xembill avatar Mar 08 '18 12:03 xembill

If you are using string data type, you will likely run into issues because ES6 does not support it.

There is a PR half solving this. If I get time I will complete it unless anyone volunteers

jamesgraham avatar Mar 14 '18 10:03 jamesgraham

Can someone update composer.json to work with ongr/elasticsearch-dsl version 6

https://github.com/sleimanx2/plastic/blob/master/composer.json#L17

There's a dependency to use ongr ElasticSearch DSL pinned at version 5.

vkulov avatar Jul 16 '18 15:07 vkulov

I ended up forking the repo, and updating the dependancies:

"require": {
    "elasticsearch/elasticsearch": "~6.2.4",
    "ongr/elasticsearch-dsl": "6.*",
},

And then on your project, you would include it as...

"require": {
    "sleimanx2/plastic": "dev-master as 0.5.6",
},
"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/githubusername/plastic"
        },
]

reganjohnson avatar Aug 30 '18 18:08 reganjohnson