- Newest
- Most votes
- Most comments
Based on the information available, I can address your questions about using Sudachi dictionaries with Amazon OpenSearch Service:
-
Regarding binary .dic files as TXT-DICTIONARY packages: The documentation specifically states that "the Sudachi plugin only supports binary Sudachi dictionaries" which you can upload with the CreatePackage API operation. Your approach of creating the binary dictionary file seems correct, but the "Internal Error" during package creation suggests there might be an issue with how the binary file is being processed.
-
Yes, AWS OpenSearch Service does support binary user dictionary files for the Sudachi plugin. The documentation explicitly mentions this support and provides guidance on using both system and user dictionaries with the Sudachi tokenizer.
-
Potential workarounds and considerations:
-
When you encounter an "INTERNAL_FAILURE" error, this typically indicates that OpenSearch compute units (OCUs) are overloaded. The recommended approach is to implement an exponential backoff retry policy to temporarily reduce the request rate.
-
For the Sudachi plugin specifically, when you associate a dictionary file, it doesn't immediately reflect on the domain. The dictionary refreshes only when the next blue/green deployment runs on the domain as part of a configuration change.
-
An alternative approach mentioned in the documentation is to create a new package with updated data, create a new index using this package, reindex the existing index to the new one, and then delete the old index. Using an index alias can prevent disruption to your traffic.
-
Ensure your package creation meets all requirements: the S3 bucket must be in the same region (which you've verified), and the file structure must follow what the plugin expects.
-
If you're using customer-managed KMS keys for encryption, ensure that OpenSearch Service has the necessary grants to access your key. However, since you mentioned using S3-managed keys (AES-256), this shouldn't be the issue.
The "Internal Error" you're experiencing might be temporary. I would recommend retrying the package creation with an exponential backoff strategy. If the issue persists, you might need to check if there are any specific formatting requirements for the binary dictionary file that aren't being met.
Sources
CollectionErrorDetail - Amazon OpenSearch Serverless
Importing and managing packages in Amazon OpenSearch Service - Amazon OpenSearch Service
Amazon OpenSearch Service custom package AWS KMS integration - Amazon OpenSearch Service
Managing custom plugins in Amazon OpenSearch Service - Amazon OpenSearch Service
answered 9 months ago
Relevant content
asked 3 years ago

Thank you for the response. However, this doesn't appear to be a temporary overload issue:
Could you clarify:
Did you solve it? I'm having the same problem. (I wonder why this is happening, since the system dictionary seems fine?)