Hi,
Is it possible to have a mapping with a field that could have two different types?
For example, either object or string
No, each field must have a single mapping within an index.
1 Like
But you can analyze the same field as a text and a number using multi fields feature (https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html)
But as @Christian_Dahlqvist said in your case (object vs field) you can't do that.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.