ElasticsearchBundle
ElasticsearchBundle copied to clipboard
Raw object property (enabled: false)
We cannot map arbitrary object structure inside PHP object.
Example from https://www.elastic.co/guide/en/elasticsearch/reference/current/enabled.html:
PUT my_index
{
"mappings": {
"session": {
"enabled": false
}
}
}
PUT my_index/session/session_1
{
"user_id": "kimchy",
"session_data": {
"arbitrary_object": {
"some_array": [ "foo", "bar", { "baz": 2 } ]
}
},
"last_updated": "2015-12-06T18:20:22"
}
Solution would be something like Doctrine's json type.
I really need this too