Hm, I think it's something about passing it as a URI parameter. If you run it in the body (like your second example), it seems to work as expected:
POST _analyze
{
"analyzer": "fingerprint",
"text": "Santé the in a Monica"
}
# POST _analyze
{
"tokens": [
{
"token": "a in monica sante the",
"start_offset": 0,
"end_offset": 21,
"type": "fingerprint",
"position": 0
}
]
}
GET /_analyze?analyzer=fingerprint&text="Santé the in a Monica"
# GET /_analyze?analyzer=fingerprint&text="Santé the in a Monica"
{
"tokens": [
{
"token": "a in monica sant the",
"start_offset": 0,
"end_offset": 23,
"type": "fingerprint",
"position": 0
}
]
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.