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

Add search_pipeline to path #239

Closed

Conversation

tamcv
Copy link

@tamcv tamcv commented Apr 11, 2024

Description

Add search_pipeline to path

Issues Resolved

Fix below error when adding search_pipeline to body request:

     Searchkick::InvalidQueryError:
       [400] {"error":{"root_cause":[{"type":"parsing_exception","reason":"Unknown key for a VALUE_STRING in [search_pipeline].","line":1,"col":6513}],"type":"parsing_exception","reason":"Unknown key for a VALUE_STRING in [search_pipeline].","line":1,"col":6513},"status":400}

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@tamcv tamcv force-pushed the add_search_pipeline_to_path branch from 4a7c8f3 to c74ab4c Compare April 11, 2024 04:59
@nhtruong
Copy link
Collaborator

This line should already allows search_pipeline in the path as a query parameter if you do client.search(search_pipeline: ...) because it's in the ParamRegistry

@tamcv
Copy link
Author

tamcv commented Apr 16, 2024

Thanks @nhtruong. The problem came from searchkick gem since it haven't supported the search_pipeline param yet.

@tamcv tamcv closed this Apr 16, 2024
@tamcv tamcv deleted the add_search_pipeline_to_path branch April 16, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants