Weird methods in ElasticsearchClient
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- elasticsearch, java
- Domain
- backend-api-design, search
Research direction
Start with the cited methods in java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java and compare their generated signatures with the Elasticsearch API specification. Determine whether the no-argument overloads should be removed, then verify that the affected client methods and any generated output consistently reflect the required parameters.
Written by the indexing model from the issue text.
Description
There are methods in ElasticsearchClient that look like not very useful.
They do not take any parameter, therefore using the builder internally without setting any value. When called, they raise an IllegalStateException.
Examples
- public BulkResponse bulk()
- public MtermvectorsResponse mtermvectors()
- public FieldCapsResponse fieldCaps()
- public ReindexResponse reindex()
- public RenderSearchTemplateResponse renderSearchTemplate()
Looking at the API documentation, there is a least some mandatory parameter.
Is this maybe the result of generating the client based on the API specification and they should better be removed?
- Dominant language
- Java
- Stars
- 524
- Forks
- 300
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 16
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.
More from elastic/elasticsearch-java
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
elastic/elasticsearch-java#1339 · 3 comments · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
elastic/elasticsearch-java#1212 · 8 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
elastic/elasticsearch-java#1165 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
elastic/elasticsearch-java#1083 · 2 comments ·
-
Area: Generator Category: Enhancement
Difficulty 3/5 1-2 days Newbie friendliness 48/100
elastic/elasticsearch-java#1034 · 2 comments ·
All issues in elastic/elasticsearch-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100