-
Notifications
You must be signed in to change notification settings - Fork 190
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
[FEATURE] Raw Json support #257
Comments
Thanks for opening this up @owaiskazi19. [1] #206 |
Hey @saratvemulapalli! The issue is related to bug in deserialization for CreateIndexRequest. This issue focuses on adding an enhancement for supporting raw json file. |
I like this. I think we want |
+1. add getSourceAsString() as RestHighLevelClient.
|
coming from #377 (comment) (thanks @dblock for pointing me this way!): i think this would be great to use in |
I wonder if we can do something like here for reference elastic/elasticsearch-java#200 |
@Jai2305 Yes, do double check that there's no non-APLv2-compatible code anywhere. |
Thanks @dblock , do you mind keeping it for a bit? For the context, I've been working on opensearch-project/spring-data-opensearch#227 which directly uses this kind of feature, just because Spring Data Elasticsearch has been relying on it. Once done, we could think about having such support in |
Is your feature request related to a problem?
Current JavaClient requires TypeMapping type which requires deserializing the Json Parser and Mapper to read raw json of mapping file using
TypeMapping._DESERIALIZER
. This process is not documented right now.The mapper and parser should be present in java client and thus avoiding the user to create it on their end everytime.
What solution would you like?
When creating an index, provide a type to pass the raw json file directly which can be later parse on java client side to TyepMapping
What alternatives have you considered?
A clear and concise description of any alternative solutions or features you've considered.
Do you have any additional context?
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: