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

Error using Elasticsearch 7.5.1 Index with Routing #669

Open
lpegoraro opened this issue Jan 30, 2020 · 1 comment
Open

Error using Elasticsearch 7.5.1 Index with Routing #669

lpegoraro opened this issue Jan 30, 2020 · 1 comment

Comments

@lpegoraro
Copy link

lpegoraro commented Jan 30, 2020

My code is this.

JestResult response = esClient.execute(
        new Index.Builder(source).index(index)
        .setParameter("routing", routing)
        .build());
    response.getJsonString();

This is the error on the last line. Maybe an version thing on the 7.5.1?

Result: {"error":"Incorrect HTTP method for uri [/tweets?routing=someUser1] and method [POST], allowed: [GET, PUT, HEAD, DELETE]","status":405}, isSucceeded: false, response code: 405, error message: "Incorrect HTTP method for uri [/tweets?routing=someUser1] and method [POST], allowed: [GET, PUT, HEAD, DELETE]"

@johntremonton
Copy link

johntremonton commented Feb 5, 2020 via email

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