Open mrsdz opened 5 years ago
Check your mapping in ES, maybe if you started by indexing "size": "1"
, as you didn't specify anything, ES thought it was an integer and created the mapping for it. So it would reject "XL" as not being an integer.
Just an hypothesis as I don't have more details.
Hi I'm trying to save a JSONField in Django admin and I got this error: BulkIndexError
I'm trying to save:
{"size": "XL", "color": 2}
But everything is okay with:{"size": "1", "color": 2}
My ObjectField Document:
My Model:
attributes = JSONField(default=dict, blank=True)