Code Monkey home page Code Monkey logo

Comments (5)

polyfractal avatar polyfractal commented on May 18, 2024

Can you provide some sample documents and the values that you are using for $date_begin, $date_end and $timezone ?

I have tried to replicate this, but all I'm getting are 500 exceptions from Elasticsearch regarding shard failures while aggregating (presumably because I don't have the same docs as you, so the aggregations are failing for purely logistical reasons)

Also, why are you suppressing 500 errors in the search request? If you receive a 500 it almost certainly means something went wrong and Elasticsearch couldn't complete your request. I can't think of a good reason to ignore 500s.

from elasticsearch-php.

Dunaeth avatar Dunaeth commented on May 18, 2024

Ok my bad, it was actually an index trouble, nothing to do with the client.

from elasticsearch-php.

polyfractal avatar polyfractal commented on May 18, 2024

Pheww, you had me worried there was some terrible bug with the new aggregation code :) Glad you got it sorted out

Let me know if you run into any more troubles!

from elasticsearch-php.

alwinaugustin avatar alwinaugustin commented on May 18, 2024

Can we use it in array format instead of JSON ?

from elasticsearch-php.

polyfractal avatar polyfractal commented on May 18, 2024

@alwinaugustin Yeah, of course :) In fact, the array syntax is preferred, since it is easier for PHP apps to build them iteratively.

Raw JSON strings are supported because they are handy for quick tests and debugging, or migrating from some other system

from elasticsearch-php.

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.