Skip to content

Allow disabling TypeHints. [DATAES-881] #1454

New issue

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

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

Already on GitHub? # to your account

Closed
spring-projects-issues opened this issue Jul 8, 2020 · 6 comments · Fixed by #1788
Closed

Allow disabling TypeHints. [DATAES-881] #1454

spring-projects-issues opened this issue Jul 8, 2020 · 6 comments · Fixed by #1788
Assignees
Labels
in: mapping Mapping and conversion infrastructure type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link

chaitanya-mittapalli opened DATAES-881 and commented

I needed a Way that  i can disable TypeHints in the Document Generated for Spring Data ElasticSearch.
https://docs.spring.io/spring-data/elasticsearch/docs/current/reference/html/#elasticsearch.mapping.meta-model.rules

I have the Mapping Definition for my elastic Index Dynamic Mapping Set to Strict and when i am trying to Index a Document it was created a Field _class in the Elastic Document which is failing the Document Insertion into the ElasticSearch index 7.X with Below Error
Elasticsearch exception [type=strict_dynamic_mapping_exception, reason=mapping set to strict, dynamic introduction of [_class] within [_doc] is not allowed]


Affects: 4.0.1 (Neumann SR1)

Reference URL: https://docs.spring.io/spring-data/elasticsearch/docs/current/reference/html/#elasticsearch.mapping

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: mapping Mapping and conversion infrastructure labels Dec 31, 2020
@sothawo
Copy link
Collaborator

sothawo commented Feb 5, 2021

@fazaza
Copy link
Contributor

fazaza commented Mar 30, 2021

@sothawo any news about this issue ?

@sothawo
Copy link
Collaborator

sothawo commented Mar 30, 2021

no. might be one of the next issues I can do, when I find the time.

@sothawo sothawo self-assigned this Apr 20, 2021
@sothawo sothawo changed the title disable TypeHints in the Document Generated for Spring Data ElasticSearch 4.X [DATAES-881] Allow disabling TypeHints. [DATAES-881] Apr 22, 2021
@sothawo sothawo added this to the 4.3 M1 (2021.1.0) milestone Apr 25, 2021
@rtakkall
Copy link

HI sothawo,

Do we need to wait till 4.3 official version to use this? because I don't see this in latest 4.2.6 version

Thanks,
Ramesh

@sothawo
Copy link
Collaborator

sothawo commented Oct 29, 2021

yes. or use the 4.3.0-RC1 from the milestone repository (see https://github.com/spring-projects/spring-data-elasticsearch#maven-configuration).

@rtakkall
Copy link

Thank you

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
in: mapping Mapping and conversion infrastructure type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants