I am just after a bit of clarification, I have just upgraded from ElasticSearch 0.90 to 1.1.1.
One difference I am noticing is that I have a field that returns json data. On 0.90 a call to :
$jsondata = $hits['fields']['jsondata']
would return the data as is and I would use
json_decode($jsondata)
to convert it into a PHP array.
Under ElasticSearch 1.1 with the same code, I am seeing a different result
$jsondata = $hits['fields']['jsondata']
This instead of returning data, returns it as an array, so to access it, I need to call something like
json_decode($jsondata[0]);
Is this a change in Elastic Search, in the way it handles json data that is stored?
The actual json data I am storing looks like:
[{"data1":"43456435435345","data2":"tyetytbety"}]
Any help with this would be appreciated.