- Newest
- Most votes
- Most comments
Unfortunately, AWS OpenSearch Service does not currently support custom ScriptPlugins. The validation error you encountered indicates that plugins implementing the ScriptPlugin interface are not allowed in the managed service.
AWS OpenSearch Service has strict limitations on custom plugins for security and performance reasons. While they do support some types of custom plugins, ScriptPlugins are not among the supported extensions. There is no manual validation process to approve individual custom plugins that fall outside the supported types.
As an alternative to using a custom ScriptPlugin for implementing a Bloom filter-based document skipping mechanism, you might consider the following approaches within AWS OpenSearch Service:
-
Use OpenSearch's native scripting capabilities: While not as efficient as a custom plugin, you could implement some of the logic using OpenSearch's supported scripting languages like Painless. This would allow you to perform some document filtering and scoring adjustments, albeit with potential performance trade-offs.
-
Pre-process your data: Instead of using a Bloom filter at query time, you could pre-process your data to add flags or metadata to documents indicating their status. This could then be used in queries to filter or adjust scoring without needing a custom plugin.
-
Utilize OpenSearch's built-in features: Explore using a combination of OpenSearch's native features like filters, query rescoring, and function score queries to achieve similar functionality without a custom plugin.
If these alternatives don't meet your specific requirements and you decide to self-host OpenSearch on EC2, you should implement several security measures to approach the level of security provided by AWS OpenSearch Service:
- Use VPC for network isolation
- Implement encryption at rest using AWS KMS
- Enable encryption in transit (TLS)
- Use IAM roles for EC2 instances
- Implement fine-grained access control
- Regular security patching and updates
- Enable CloudTrail for API call logging
- Use Security Groups for firewall rules
- Implement multi-factor authentication for administrative access
While self-hosting gives you more flexibility with custom plugins, it also increases your operational overhead and security responsibilities. If possible, it's generally recommended to stay with the managed AWS OpenSearch Service for its built-in security, scalability, and maintenance benefits.
Sources
Custom plugins - Amazon OpenSearch Service
Plugins by engine version in Amazon OpenSearch Service - Amazon OpenSearch Service
Amazon OpenSearch Service now supports Custom Plugins - AWS
Relevant content
asked 5 years ago
asked 3 years ago

Hetey! Thank you for prompt response!
I have found out that for my purpose I need just a simple must_not and value_type "bitmap" in my complex query. No need to migrate the old ElasticSearch scoring plugin. Thank you OpenSearch 2.17+!!!
{ "query": { "bool": { "must": { "match_all": {} }, "must_not": { "terms": { "bf": ["base64encodedRoaringBitmap"], "value_type": "bitmap" } } } } }