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

[BUG] - search_pipeline not properly implemented for OpenSearchClient.search method #887

Closed
Marco1402 opened this issue Jan 29, 2025 · 2 comments
Labels
bug Something isn't working untriaged Need triage

Comments

@Marco1402
Copy link

What is the bug?

When trying to call the OpenSearchClient.search method with the search pipeline argument, it raises a 400 illegal_argument_exception error. Even though the parameter is exposed and mentioned in the API reference of that class.

How can one reproduce the bug?

Create OpenSearchClient instance and call .search method with search_pipeline argument.

What is the expected behavior?

Carrying out a search with a custom search_pipeline

What is your host/environment?

Ubuntu

Do you have any screenshots?

results = oss_client.search(index=index_name, body=query, search_pipeline=search_pipeline)

Do you have any additional context?

@Marco1402 Marco1402 added bug Something isn't working untriaged Need triage labels Jan 29, 2025
@dblock
Copy link
Member

dblock commented Jan 30, 2025

Want to try to write a (failing) test for this?

@Marco1402
Copy link
Author

sorry, I misinterpreted the error message, thinking the parameter is deemed as invalid, thought it is the OS engine version that does not support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged Need triage
Projects
None yet
Development

No branches or pull requests

2 participants