How to remove the duplicate fields in the index patter with the .Keyword

Provide a mapping instead of letting elasticsearch decide for you.