opensearch-project / opensearch-project/opensearch-java

[FEATURE] Add max_slices_per_pit to index settings operations

Open
#1,130 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
165
Forks
250
Avg merge
1d 18h
Merged PRs (30d)
26

Description

Is your feature request related to a problem?

The max_slices_per_pit index setting is completely missing from the index settings operations.

What solution would you like?

There should be an API similar to those for available for max_slices_per_scroll.

What alternatives have you considered?

I am able to configure this setting using the JavaScript client but that is not an option for this use-case.

Do you have any additional context?

APIs should look something like the following from client perspective.

val response = indices().getSettings(
    GetIndicesSettingsRequest
        .of { r -> r.index(index) }
)

response.result()[index]?.settings()?.maxSlicesPerPit()

indices().putSettings(
    PutIndicesSettingsRequest
        .of { p -> p.index(index).settings { s -> s.maxSlicesPerPit(maxSliceCount) } }
)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the index settings operations represented by GetIndicesSettingsRequest and PutIndicesSettingsRequest, and compare their existing max_slices_per_scroll APIs. Add the corresponding maxSlicesPerPit getter and setter behavior, then verify that both reading and updating the setting work through the Java client examples described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.