Slow custom plugin

I have written a custom plugin implementing FilterScript and noticed on large data sets it is quite slow; so I changed the execute method to simply return 'true' and removed all other computation. Then removed and reinstalled the plugin and restarted the elasticsearch service and it still seems to slow?

Is this an issue/overhead with filters?

I'm using ElasticSearch 7.4.0
(running on a hosted vSphere Ubuntu18.04 VM with 24GB and 4 CPUs)

Query with my filter processing:


Query with filter returning true:


Query without using the filter:


Kind regards,

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.