I have been using 0.90 and have just updated to 1.1.
Problem I am having is that the data in 1.1 seems to be formatted
differently than 0.90
In 0.90 the json raw data looks like:
"field":data
however in 1.1 the data seems to be sorting it:
"field":{data}
This means that in my code anywhere I was referring to
$results['fields']['fieldname']
needs to be $results['fields][fieldname][0]
If this an option that can be changed, or is this a new way that
elasticsearch is storing data.(with all fields being an array instead of
standard string?
I have been using 0.90 and have just updated to 1.1.
Problem I am having is that the data in 1.1 seems to be formatted differently than 0.90
In 0.90 the json raw data looks like:
"field":data
however in 1.1 the data seems to be sorting it:
"field":{data}
This means that in my code anywhere I was referring to $results['fields']['fieldname']
needs to be $results['fields][fieldname][0]
If this an option that can be changed, or is this a new way that elasticsearch is storing data.(with all fields being an array instead of standard string?
does the flat_settings work on query results, it does not seem that it does
from the way its written, but was hoping there was an option to choose to
return query results flattened.
On Wednesday, May 14, 2014 6:02:26 PM UTC+10, David Pilato wrote:
Le 14 mai 2014 à 09:59:06, Lawrence cooke (mrcos...@gmail.com<javascript:>)
a écrit:
Hi,
I have been using 0.90 and have just updated to 1.1.
Problem I am having is that the data in 1.1 seems to be formatted
differently than 0.90
In 0.90 the json raw data looks like:
"field":data
however in 1.1 the data seems to be sorting it:
"field":{data}
This means that in my code anywhere I was referring to
$results['fields']['fieldname']
needs to be $results['fields][fieldname][0]
If this an option that can be changed, or is this a new way that
elasticsearch is storing data.(with all fields being an array instead of
standard string?
Unfortunately no, you'll need to adjust your code to adapt to the breaking
change. If it helps, you could use _source filtering and it will return the
exact format from the JSON document:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.