Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support Hybrid Search in Java Client #737

Closed
yudhiesh opened this issue Nov 20, 2023 · 4 comments
Closed

[FEATURE] Support Hybrid Search in Java Client #737

yudhiesh opened this issue Nov 20, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@yudhiesh
Copy link

yudhiesh commented Nov 20, 2023

Is your feature request related to a problem?

A clear and concise description of what the problem is, e.g. I'm always frustrated when [...].
I noticed that the Java Client does not have a way to perform a Hybrid Query leveraging Exact Keyword Search and Semantic Search as per the documentation here. I don't mind working on this feature.

What solution would you like?

A clear and concise description of what you want to happen.
A method for hybrid() within the QueryBuilder class where we pass a List of Queries to run:

List<Query> queries = new ArrayList<>();
NeuralQuery neuralQuery = new NeuralQuery.Builder().build();
MatchQuery matchQuery = new MatchQuery.Builder().build();
queries.add(neuralQuery);
queries.add(matchQuery);
Query query = new Query.Builder()
                    .hybrid(queries)
                    .build();

What alternatives have you considered?

A clear and concise description of any alternative solutions or features you've considered.

Do you have any additional context?

Add any other context or screenshots about the feature request here.

@yudhiesh yudhiesh added enhancement New feature or request untriaged labels Nov 20, 2023
@dblock
Copy link
Member

dblock commented Dec 4, 2023

@yudhiesh thanks for raising this, please do contribute!

@dblock dblock removed the untriaged label Dec 4, 2023
@yudhiesh
Copy link
Author

yudhiesh commented Dec 4, 2023

@yudhiesh thanks for raising this, please do contribute!

Would love to, any guides on how I can contribute to the codebase for this?

@dblock
Copy link
Member

dblock commented Dec 4, 2023

I don't have anything specific, would dig through recent PRs for adding query builders.

@VachaShah
Copy link
Collaborator

@yudhiesh This feature is now released in 2.9.0 of the java client via PR #850. Please reopen this issue if there are any issues. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants