I tried validating the resulting json @ http://jsonformatter.curiousconcept.com/ and it gave the following
errors:
Error:Invalid object closure. [Code 15, Structure 89]
Error:Invalid Braces. [Code 26, Structure 0]
Ditto when I try to parse it using perl module for JSON....
Any ideas on what might be happening here? Is the validator wrong or
something's wrong with ES?
Can you send a sample json that you index? I think that the json that you index is malformed (missing } at the end), and the ES parser is relaxed about that when indexing, but, when it constructs the result, it will fail to be parsed.
On Friday, December 10, 2010 at 3:45 AM, Anurag wrote:
We are using the REST API to retrieve results from ES, query below:
curl -XGET 'http://:9200/_search?' -d '
{
"query" : {
"bool" : {
"must" : [
{
"field" : { "filename" :
"mozilla-central-linux-debug-1291801653-mochitests-3.gz" }
}
]
}
}
}'
I tried validating the resulting json @ http://jsonformatter.curiousconcept.com/ and it gave the following
errors:
Error:Invalid object closure. [Code 15, Structure 89]
Error:Invalid Braces. [Code 26, Structure 0]
Ditto when I try to parse it using perl module for JSON....
Any ideas on what might be happening here? Is the validator wrong or
something's wrong with ES?
Can you send a sample json that you index? I think that the json that you
index is malformed (missing } at the end), and the ES parser is relaxed
about that when indexing, but, when it constructs the result, it will fail
to be parsed.
On Friday, December 10, 2010 at 3:45 AM, Anurag wrote:
We are using the REST API to retrieve results from ES, query below:
curl -XGET 'http://:9200/_search?' -d '
{
"query" : {
"bool" : {
""must" : [
{
"field" : { "filename" :
"mozilla-central-linux-debug-1291801653-mochitests-3.gz" }
}
]
}}
}
}'
I tried validating the resulting json @ http://jsonformatter.curiousconcept.com/ and it gave the following
errors:
Error:Invalid object closure. [Code 15, Structure 89]
Error:Invalid Braces. [Code 26, Structure 0]
Ditto when I try to parse it using perl module for JSON....
Any ideas on what might be happening here? Is the validator wrong or
something's wrong with ES?
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.