Hi,
I would like all my fields to be indexed as a keyword.
Creating index:
PUT abcd
{
"settings": {
"analysis": {
"analyzer": {
"default": {
"type": "keyword"
}
}
}
}
}
Sending doc:
POST abcd/_doc
{
"foo": "bar"
}
But still is indexed as both text and keyword:
{
"abcd" : {
"mappings" : {
"properties" : {
"foo" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
}
}
}
thanks