In the page https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-pattern-analyzer.html, there is a sample as below:
DELETE test
PUT /test
{
"settings": {
"analysis": {
"analyzer": {
"whitespace": {
"type": "pattern",
"pattern": "\s+"
}
}
}
}
}
GET /test/_analyze?analyzer=whitespace&text=foo,bar baz
"foo,bar", "baz"
But actually it outputs "foo", "bar", "baz", how to output "foo,bar", "baz"?
Any help is welcome.