Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ScoreSort sort by Doc field

Open
#561 2 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
elasticsearch, java
Domain
api, search

Research direction

Open java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java at the referenced line and inspect _sortOptionsKind(). Compare its returned kind with the issue's proposed Score value. Done means the method reports the correct score sort kind; the payload does not mention a test file to run.

Written by the indexing model from the issue text.

Description

Java API client version

7.17

Java version

jdk8

Elasticsearch Version

7.17

Problem description

Seems like ScoreSort sort by doc field - see https://github.com/elastic/elasticsearch-java/blob/7.17/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ScoreSort.java#L69
Probably it should be

public SortOptions.Kind _sortOptionsKind() {
        return SortOptions.Kind.Score;
}
Dominant language
Java
Stars
524
Forks
299
Avg merge
16m
Merged PRs (30d)
13

Getting set up

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.

More from elastic/elasticsearch-java

All issues in elastic/elasticsearch-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.