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

Is there a way to specify ?routing= query peram on searches? #303

Open
robwithhair opened this issue Oct 22, 2024 · 2 comments
Open

Is there a way to specify ?routing= query peram on searches? #303

robwithhair opened this issue Oct 22, 2024 · 2 comments

Comments

@robwithhair
Copy link
Contributor

Firstly, thanks for all your hard work on this librarly, it is very useful and usually quite easy to use.

I have been reading the code line by line to try and figure this one out but no luck thus far. If there is a way to do it then I think the documentation could do with an example?

Basically I'm trying to specify the routing value for a query of indexed documents that have had the routing value sent at index time.

Does the Bloodhound library support routing values on queries at all or is there something I'm missing? I've been trying to figure out how URL query strings are created but I'm not getting very far.

Any help or advice on if the feature is supported or not would be much appreciated?

@blackheaven
Copy link
Collaborator

Hello,

Thanks for your feedback.

As you have found out, there's no function which allows it directly.

However, you can have a look at Requests, which gives a BHRequest which has a Endpoint, you would be able to append any query params.

Let my know if it works for your use
case.

@blackheaven
Copy link
Collaborator

(sorry, I have miss-clicked)

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

No branches or pull requests

2 participants