Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Dynamic mapping type "strict_allow_templates" does not exists for @Document Annotation. #357

Open
Xyaren opened this issue Oct 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Xyaren
Copy link

Xyaren commented Oct 15, 2024

What is the bug?

The feature was implemented in opensearch-project/OpenSearch#14555.
I can not use this option when generating the mapping using spring because the enum value does not exist:

@Document(indexName = "#{@environment.getProperty('opensearch.index.relations.name')}",
          versionType = Document.VersionType.INTERNAL,
          dynamic = Dynamic.STRICT_ALLOW_TEMPLATES,  // <--------- Here
          writeTypeHint = WriteTypeHint.FALSE)
@Setting(settingPath = "os/relation.settings.json")
@DynamicTemplates(mappingPath = "os/relation.dynamic-templates.json")
public class RelationDocument {

The same applies on a field basis:

@Field(type = FieldType.Object, dynamic = Dynamic.STRICT_ALLOW_TEMPLATES)
private LocalizedString localName;

What is the expected behavior?

I can select the option.

@Xyaren Xyaren added bug Something isn't working untriaged labels Oct 15, 2024
@dblock dblock removed the untriaged label Nov 4, 2024
@dblock
Copy link
Member

dblock commented Nov 4, 2024

[Catch All Triage - 1, 2]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants