1、新建索引
{
"settings": {
"index": {
"number_of_shards": "5",
"number_of_replicas": "1",
"mappings": { "myType": { "properties": { "content": { "type": "text", "analyzer": "comma" } } } }, "analysis": { "analyzer": { "comma": { "type": "pattern", "pattern": ",", "lowercase": false //保留原来大小写 } } } } }}
2、测试
结果:
{
"tokens": [ { &#