I have a string I'd like to index as keyword type but with a special comma analyzer:
For example:
"San Francisco, Boston, New York"
should be both indexed and aggregatable at the same time so that I can split it up by buckets. In pre 5.0.0 the following worked:
Index settings:
{
'settings': {
'analysis': {
'tokenizer': {
'comma': {
'type': 'pattern',
'pattern': ','
}
},
'analyzer': {
'comma': {
'type': 'custom',
'tokenizer': 'comma'
}
}
},
},
}
with the following mapping:
{
'city': {
'type': 'string',
'analyzer': 'comma'
},
}
Now in 5.3.0 and above the analyzer
is no longer a valid property for the keyword
type, and my undestanding is that I want a keyword
here. How do I specify an aggregatable, indexed, searchable text type with custom analyser?