You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The REST layer does decoding of + into space and decoding of percent-encoded characters that the transport layer does not. The issue of + being decoded into a space is one fraught with some history. See the discussion on #33164 for some recent history on this. We have a proposal that we modify this behavior in a future release, your feedback there is certainty welcome. Does that help? I think then that we can close this issue? 🤔
Hello,
Elasticsearch version: 6.4.0
JVM version: 1.8.0
OS version: MacOSX 17.6.0 Darwin Kernel
I have an index with the next mapping
and next setting
I indexed a simple document using the IndexRequest API, where the "id" value contains a special character "+", so the result document looks like this
As expected I am not able to GET this document without encoding the "+" character
But I am able to GET it using an encoded "+" character
and to make sure I tested it with a simple HTTP GET request
also it is possible to SEARCH for this document using the value as it is, i.e.
However when I try to use the GetRequest API, the document is not found
If I print the "getRequest" it looks correct
The "response" also looks correct, however the document was not found
So I was expecting to be able to get the same result using the GetRequest API as I am getting when I GET this document manually.
Can you please take a look and explain whether it is a bug or an expected behavior, or may be I am just missing something?
The text was updated successfully, but these errors were encountered: