You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the document (https://elastic-builder.js.org/docs/#sort), it says that esb.sort needs field as essential and order as optional. It works fine for specific field. But there is a problem when I use script instance member.
Correct me if I wrong, from what I can tell, the resolution for this problem is to annotate the field option to the esb.sort method as optional. The issue is not with the actual code but the jsdoc and typings.
Hi! I found out some problem using esb.sort()
According to the document (https://elastic-builder.js.org/docs/#sort), it says that esb.sort needs field as essential and order as optional. It works fine for specific field. But there is a problem when I use script instance member.
I needed to custom my field value, so I used script instance member. But the third line gives me an error message, Expected 1-2 arguments, but got 0.
I think field type should be optional not essential.
Or Am I missing something? Let me know.
Thank you
Reviewer: @sudo-suhas
The text was updated successfully, but these errors were encountered: