0

I need a field in index where we can add any types of data. I mean we need to add json objects , empty array and empty values as well as any type of values to the field.

Please let me know if there is any way to achieve this in elastic search.

Field: data :{ "fname":"abc", ""lname:"xyz" }

Field : data :["",""] field : data :"abc"

I want to store all above mentioned values in data field.

1 Answer 1

1

You can try this flattened datatype in elasticsearch https://www.elastic.co/guide/en/elasticsearch/reference/master/flattened.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.