Open pulse-mind opened 7 months ago
It seems to work with :
data_json = fields.ObjectField(
properties={
"form": fields.ObjectField(
properties={
"content": fields.TextField()
}
)
}
)
I have a Document class like that :
But for some reason in the JSON I have data_json.form.content = '2024-24' but elastic defined this field as Date. So I get an exception during the indexing. I wanted to define a specific mapping for this and my idea was to add a class Meta into my MyDataDocument, something like this :
But it does not work like this. Is it possible to define it in the Document Class ?