Giter VIP home page Giter VIP logo

Comments (13)

ellisio avatar ellisio commented on July 18, 2024 1

So after some discussion with the elasticsearch/elasticsearch author, he was willing to add a new library to the class to help out our cause of keeping support for 5.x. Take a look:

elastic/elasticsearch-php#534 (comment)

from plastic.

hipsterjazzbo avatar hipsterjazzbo commented on July 18, 2024 1

@sleimanx2 What needs doing on this? Is the work on the develop branch current, or is it out of date? I note that it is currently 32 commits behind master.

from plastic.

hoersten avatar hoersten commented on July 18, 2024 1

@sleimanx2 Any updates on this? We'd like to use it on our Laravel 5.4, ES 5.4 and PHP 7 site.

from plastic.

sleimanx2 avatar sleimanx2 commented on July 18, 2024 1

Please check v0.5.0 🥂

from plastic.

sleimanx2 avatar sleimanx2 commented on July 18, 2024

perfect added a develop branch for ES 5 support

from plastic.

ellisio avatar ellisio commented on July 18, 2024

I think this needs to be reopened and discussed a little more.

Right now you're wanting to include support for Laravel 5.2.*|5.3.*. Well, 5.4.* is now a thing.

Also, the underlying library of elasticsearch/elasticsearch is going to require PHP ^7.0 as they require ext-json >= 1.3.7. PHP 5.6.x ships with ext-json 1.2.1.

So if we want to support the elasticsearch/elasticsearch 5.x the minimum PHP version Plastic will need to support is 7.0. This cuts out all current Laravel versions as the framework only requires 5.6.4+.

Laravel 5.5 will require PHP 7.0+. So until Laravel requires 7.0 I would halt development and support on ES 5.

Once Laravel 5.5 is released we can change the composer.json to the following:

  "require": {
    "php": ">=7.0",
    "elasticsearch/elasticsearch": "~5.1",
    "ongr/elasticsearch-dsl": "~5.0"
    "illuminate/container": "5.5.*",
    "illuminate/contracts": "5.5.*",
    "illuminate/console": "5.5.*",
    "illuminate/pagination": "5.5.*",
    "illuminate/support": "5.5.*",
    "illuminate/database": "5.5.*",
  },

from plastic.

jamesgraham avatar jamesgraham commented on July 18, 2024

@ellisio I understand where you come from but what solution can we arrive at for people running PHP7 and wanting ES 5? Should we have a new major version of this library for these latest versions?

from plastic.

jamesgraham avatar jamesgraham commented on July 18, 2024

@ellisio how should we use this now?

from plastic.

jamesgraham avatar jamesgraham commented on July 18, 2024

@sleimanx2 @ellisio The ES library has been updated to 5.1.3 to support this - what are the next steps?

from plastic.

dreferreira avatar dreferreira commented on July 18, 2024

@ellisio @sleimanx2 any further update on how to get this to be compatible with ES 5.X?? I'm currently working on a large project involving laravel 5.4 with PHP 7.0.2 (Which is required for some of the processing within laravel) and would like to require this package with the latest ES.

from plastic.

dominicmomentum avatar dominicmomentum commented on July 18, 2024

@ellisio @sleimanx2 I'm also very interested having this package compatible with ES 5.X and PHP 7. Could we create a separate branch for that until Laravel 5.5 in July?

from plastic.

sleimanx2 avatar sleimanx2 commented on July 18, 2024

the issue is that the test are not green anymore due to the following update

Since Elasticsearch 5.0 the support for top level filters was dropped. The same functionality is now supported via BoolQuery

I'll work on fixing the issue soon.

from plastic.

jamesgraham avatar jamesgraham commented on July 18, 2024

Hey @sleimanx2 is there anything the community can do to help move this?

from plastic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.