In order to apply a filter in all dashboard, I had created a scripted field in on index - as doc['product.product_id'].value
However once I try to applicate the control filter as bellow image, it gives me an error, however the filter was applied properly, but keep showing the error message in the rigth side of the window.
Error message:
Timelion: Error: in cell #1: [script_exception] runtime error, with { script_stack={ 0="org.elasticsearch.search.lookup.LeafDocLookup.get(LeafDocLookup.java:94)" & 1="org.elasticsearch.search.lookup.LeafDocLookup.get(LeafDocLookup.java:41)" & 2="doc['product.product_id'].value }, params.value);" & 3=" ^---- HERE" } & script="boolean compare(Supplier s, def v) {return s.get() == v;}compare(() -> { doc['product.product_id'].value }, params.value);" & lang="painless" }
I appreciate if any can help me!
Thanks and Best regards.