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
{{ message }}
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
I first noticed this in /080_Structured_Search/05_term.asciidoc - The following example is in the docs, but it doesn't work when you try to copy and paste it into Sense, and the link to view in Sense actually sends different content.
Docs (results in an error, text is not passed to the request)
GET /my_store/_analyze?field=productID
XHDK-A-1293-#fJ3
note: the request is not escaped (# vs %23), so even if you fix the syntax, you get different results (the content from # on is dropped) - perhaps this should also be pointed out in the docs.
Sense
GET /my_store/_analyze?field=productID&text=XHDK-A-1293-%23fJ3
This is also an issue with the code in /052_Mapping_Analysis/40_Analysis.asciidoc and I suspect in other parts of the docs as well.
It's possible this is actually a Sense bug, but someone took the time to update the Sense json in the docs without updating the examples, and the docs are technically broken as-is.
The text was updated successfully, but these errors were encountered:
However, Sense can only handle JSON bodies, not plain text. With a JSON body it knows where the end of the body should be. A plain text body might include paragraphs, so where does the body actually end?
There is an open issue (elastic/elasticsearch#5866) to allow the analyze end point to accept JSON instead of text, which would solve this issue.
I first noticed this in
/080_Structured_Search/05_term.asciidoc
- The following example is in the docs, but it doesn't work when you try to copy and paste it into Sense, and the link to view in Sense actually sends different content.Docs (results in an error, text is not passed to the request)
note: the request is not escaped (# vs %23), so even if you fix the syntax, you get different results (the content from # on is dropped) - perhaps this should also be pointed out in the docs.
Sense
This is also an issue with the code in
/052_Mapping_Analysis/40_Analysis.asciidoc
and I suspect in other parts of the docs as well.It's possible this is actually a Sense bug, but someone took the time to update the Sense json in the docs without updating the examples, and the docs are technically broken as-is.
The text was updated successfully, but these errors were encountered: