Dear visitor, despite the COVID-19 outbreak, our team continues operating at full speed.

Also, here is the form where you can apply for a special discount and we will contact you with possible options. Stay safe and continue achieving your business goals.

Fill the form
Get Free Trial
Get Free Trial

Problem sorting data with elasticsearch

Answered
MARIO FRANCESCO VALENTINO CORREA CAVACIOCCHI asked on June 18, 2019

Hi,
I’m having problem to sort data. (attachment)
Version 2.7.7
Datasource: Elasticsearch

Attachments:
sort.gif

1 answer

Public
Dmytro Zvazhii Flexmonster June 19, 2019

Hello Mario,
Thank you for writing to us.
Elasticsearch returns members as strings to Flexmonster. Therefore, they are not sorted as numbers in your sample.
The recommended workaround is to apply your own sorting method: https://www.flexmonster.com/api/sortingmethod/. In such a case, you can parse the input as numbers and sort them in an appropriate way.
Please let us know if the suggested approach works fine for you.
Regards,
Dmytro

Please login or Register to Submit Answer