New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2.0.0-beta1 Feedback #193
Comments
Seems good so far. I remember you mentioning at elastic{on} that you were supporting PHP 5.4, so I've started testing in a 5.4 environment. I believe I've found and issue with async mode when using 5.4, which i've opened an issue for: #201 |
Barring anymore glaring issues, I'm hoping to release 2.0 as a stable branch soon. Looks like the major bugs have been hammered out, the rest we can work out as patch / minor versions. |
Looking good on my end 👍 |
yeah, sounds good to me. 👍 |
So, I just saw that This might have some knock-on for this package, but I don't think it should hold up the I'll try and work on some benchmarks to see what this could mean for the elasticsearch-php package. EDIT:
it seems like |
Agreed that it shouldn't hold up the 2.0 release, if nothing else because I'd rather maintain a library with a slightly out-of-date dependency than the current 1.x version with it's massively out-of-date Guzzle :)
Yeah...but it's only a matter of time before RingPHP falls into neglect if Guzzle isn't using it anymore. Which means the burden of maintenance would likely fall to us (not necessarily a bad thing though). I'm sad that Guzzle has moved away from RingPHP. ES-PHP doesn't really need many of the conveniences of Guzzle; that's why the original 1.x branch used the Guzzle/HTTP dep (until that was deprecated), and why 2.x only relies on RingPHP and not Guzzle proper. I guess we'll see based on benchmarks and usability. Many of the changes look like they reduce the complexity in Guzzle and likely help performance when using it's complete feature set...I'm just not sure how much that carries over to our simpler usage of RingPHP. I'm not convinced about the perf claims regarding the new immutable middleware though: the changes avoid large stacks, but the immutable middleware is doing a lot of memory allocation to support all the closures and return values. PHP is notoriously poor at optimization, so I doubt these are handled very gracefully. But maybe shallower stacks and fewer function calls outweigh the extra allocations, I dunno. Looking forward Argh :( |
I have trouble getting it to work at all. I'm no expert, but neigher a novice. The documentation on https://www.elastic.co/guide/en/elasticsearch/client/php-api/2.0/_quickstart.html
I get
Any tips appreciated! EDIT |
@fractalf As the class is in the <?php
require 'vendor/autoload.php';
use Elasticsearch\ClientBuilder;
$client = ClientBuilder::create()->build(); or <?php
require 'vendor/autoload.php';
$client = \Elasticsearch\ClientBuilder::create()->build(); 👍 |
Thanks @simplechris 👍 |
Beaten by @simplechris :) I'll add the namespace to the docs though, as I imagine that'll be a common tripping point if people are just c/p to get up and running quickly. |
Actually, when Guzzle 4 was released, I've heard that it should be the Guzzle version "for at least a few years". Then with all the PSR-7 rush, a lot of BC has been done. Also, Guzzle is the heart of AWS SDK, and as AWS SDK has been tagged v3 a few days ago, relying on Guzzle 6, I'm pretty sure that Guzzle is going to be more stable now and won't encounter as many BC breaks and major versions. The additions of both AWS SDK and PSR-7 is what that have surely caused this whole mess ;). |
Have you used v2.0.0-beta1? Love it? Hate it? Questions how to use it? This is the ticket for you!
The text was updated successfully, but these errors were encountered: