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

Routing: Allow to define path on the _routing mapping, to automatically extract the routing from it #524

Closed
kimchy opened this issue Nov 17, 2010 · 1 comment

Comments

@kimchy
Copy link
Member

kimchy commented Nov 17, 2010

Allow to define a path for the _routing mapping, allowing to use a document field value as the routing value. The path allows for dot notation to access inner objects and fields. For example:

{
    "comment" : {
        "_routing" : {
            "required" : true,
            "path" : "blog.post_id"
        }
    }
}

The above will route the following document using the value "111222" :

{
    "text" : "the comment text"
    "blog" : {
        "id" : "111222"
    }
}

A note, when using _path and not providing the _routing specifically in the API, there might be an additional parsing stage to extract the routing before directing the operation to the relevant shard.

Also, there is a validation stage as well if the routing is provided as part of the API and a path is specified.

@kimchy
Copy link
Member Author

kimchy commented Nov 17, 2010

Routing: Allow to define path on the _routing mapping, to automatically extract the routing from it, closed by 44775c2.

medcl pushed a commit to medcl/elasticsearch that referenced this issue Jul 1, 2011
dadoonet pushed a commit to dadoonet/elasticsearch that referenced this issue Sep 4, 2015
Remove compatibility with ES 0.90

relates elastic#524
relates elastic#525
williamrandolph pushed a commit to williamrandolph/elasticsearch that referenced this issue Jun 4, 2020
Remove compatibility with ES 0.90

relates elastic#524
relates elastic#525
mindw pushed a commit to mindw/elasticsearch that referenced this issue Sep 5, 2022
…elastic#524)

MPC-4856: create_namespace migration

* avoid namespace creation failure by importing it, chmod +x, instance refresh, redis flush

* check that helm is available

* allow public IP for EKS workers

Approved-by: Can Yildiz
emilykmarx pushed a commit to emilykmarx/elasticsearch that referenced this issue Dec 26, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant