Coder Social home page Coder Social logo

Comments (5)

lfroment-datasweet avatar lfroment-datasweet commented on June 28, 2024

Hi @MrKuip ,
it seems that you are trying to ask Elasticsearch to sort your result by the output of Formula. This cannot be performed, because your Formula is computed in a Kibana context, based on the result of your query to Elasticsearch. As a matter of fact, Elastisearch knows nothing about your Formula, because it has not been computed yet.
Regards

from kibana-datasweet-formula.

MrKuip avatar MrKuip commented on June 28, 2024

I' m asking kibana to sort.

The combobox 'order by' in kibana contains the metric 'metric Formula1'.

Are you saying that I should not choose that option because it doesnt work?

from kibana-datasweet-formula.

lfroment-datasweet avatar lfroment-datasweet commented on June 28, 2024

yes, this won't work because the sorting is executed by ES, before returning an answer to Kibana. Formula will be computed based on that answer.
The Kibana UI lists any metric as a sorting choice, and we cannot prevent it to do so.

There is no simple way to circumvent this in Kibana.

from kibana-datasweet-formula.

MrKuip avatar MrKuip commented on June 28, 2024

Oke thanks for evaluating my issue.

from kibana-datasweet-formula.

MrKuip avatar MrKuip commented on June 28, 2024

Very cheeky question here:
I believe this plugin will redundant if kibana supports the 'bucket script' aggregation.
I'm using it now in 'Visual builder' and it works good but that has other problems.

Have you considered that you base this plugin on the 'bucket script' aggregation?
This way ES will be responsible for sorting (and you have less code that can break)

from kibana-datasweet-formula.

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.