Hello,
I am currently running into an issue where I am hitting the max fields for an index. In order to address this issue, I am defining mapping types for the different fields in my index. Many of the fields in my current index are string fields that are mapped both as text and keyword fields, but I really only need them to be mapped as keyword type.
Creating the new mapping to only map those fields as a keyword type is easy enough, however, I am looking for a way to make searching ACROSS both the new index and previous index without having to refactor all of my client code. The problem I am encountering is that the field is mapped as "foo.keyword" in the previous index, and would just be mapped as "foo" in the new index, if I provide a mapping definition for that field as something like:
"foo": {
"type": "keyword",
"ignore_above": 256
}
Ideally, what I am looking for is if there is some way to say the incoming field "foo" in the document should be mapped as a keyword to "foo.keyword", without being mapped as text at all.
Any advice would be greatly appreciated,
Ben