opensearch-project / opensearch-project/opensearch-java
[BUG] Add _size to PutMappingRequest
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 165
- Forks
- 250
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 26
Description
What is the bug?
The _size field is not present on PutMappingRequest, despite being present on TypeMapping.
This prevents enabling size tracking for existing indices.
How can one reproduce the bug?
What is the expected behavior?
_size (or SizeField as the Java classes call it) is present on PutMappingRequest
Do you have any additional context?
- This field is available on the dotnet version of the client
- It would be nice if
PutMappingRequestused the sameTypeMappingobject used for index creation.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with java-client/src/main/java/org/opensearch/client/opensearch/indices/PutMappingRequest.java and compare its mapping fields with TypeMapping.java, especially the existing SizeField definition. Add the missing _size or SizeField support to PutMappingRequest and verify that the request can enable size tracking for existing indices.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100