opensearch-project / opensearch-project/opensearch-java

[BUG] Missing Neural Sparse Support in Java Client (Query.java and Processor.java)

Open
#1,673 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

What is the bug?

The OpenSearch Java client is missing support for neural_sparse queries in Query.java and for the sparse_encoding processor in Processor.java.

What is the expected behavior?

The Java client should expose builders for:

neural_sparse queries via Query.java

sparse_encoding processors via Processor.java

Do you have any additional context?

The missing support forces developers to manually craft JSON requests or use REST calls directly, which defeats the purpose of having a strongly typed Java client.

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 by reading Query.java and Processor.java, then compare nearby existing query and processor builder patterns. The work is complete when the Java client exposes builders for neural_sparse queries and sparse_encoding processors, allowing these requests to be represented through the typed client rather than manual JSON.

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
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.