Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

How to route query to specific shard? #899

Open
HenleyChiu opened this issue Nov 2, 2013 · 1 comment
Open

How to route query to specific shard? #899

HenleyChiu opened this issue Nov 2, 2013 · 1 comment

Comments

@HenleyChiu
Copy link

How do I route a query to a specific shard? Note: I don't want to change the mapping of my type or index at all. I want it to happen in query time.

Thanks a lot.

@vamsi-krishna-E0029
Copy link

I'm not sure whether this can be done considering your "Note".

You should have indexed the document with a routing parameter or atleast you should have created aliases using routing while creating the index itself.

Until and unless you index the document with a routing parameter you cannot search it with routing. Its mutual, you index with routing, I give results with routing. You index without routing, I give results without routing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants