I installed an Elastic Search Server (ES server), version 7.16.3, and I can't use (or play with) the analyse API mentioned here :
I've got the response:
{
"error": "Incorrect HTTP method for uri [/_analyse] and method [POST], allowed: [HEAD, PUT, GET, DELETE]",
"status": 405
}
with their first request :
POST _analyze
{
"analyzer": "whitespace",
"text": "The quick brown fox."
}
How do I make their example working on my local ES server ?
Correct endpoint for
analyze
API islocalhost:9200/_analyze
notlocalhost:9200/_analyse
, and you are using the wrong name in the endpoint which is causing the issue.