31 lines
584 B
JSON
31 lines
584 B
JSON
|
|
{
|
||
|
|
"settings": {
|
||
|
|
"analysis": {
|
||
|
|
"analyzer": {
|
||
|
|
"char_analyzer": {
|
||
|
|
"char_filter": [
|
||
|
|
"split_by_whitespace_filter"
|
||
|
|
],
|
||
|
|
"tokenizer": "whitespace"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"char_filter": {
|
||
|
|
"split_by_whitespace_filter": {
|
||
|
|
"type": "pattern_replace",
|
||
|
|
"pattern": "(.+?)",
|
||
|
|
"replacement": "$1 "
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"mappings": {
|
||
|
|
"like_search_type": {
|
||
|
|
"properties": {
|
||
|
|
"name": {
|
||
|
|
"type": "text",
|
||
|
|
"analyzer": "char_analyzer"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|