Skip to content

Allow per index routing values in the same query #4272

@ppearcy

Description

@ppearcy

I have a single query that spans over a index that has per client private data that uses routing, as well as, a global index with shared data with no routing.

I would like to combine this into a single query, but end up needing to set different routing values per index, eg the private index has the clientid routing value and the global index does not have a routing value.

My current workaround is to simply run two queries and merge those results. This approach doesn't work great with relevancy since the scores are computed in isolation and also make pagination painful.

Heres a brief discussion that might help if there is confusion:
https://groups.google.com/forum/#!topic/elasticsearch/FwsOAHz80MU

This would be a nice to have, but definitely, not a priority.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions