Assuming the ES response that comes back has the data you need
This is my issue though. I'm using the default courier request handler, as you can see from my code above. This is returning the data in a format that looks like this:
I currently have one entry in that index, which the search does return as you can see by the total hits returned. However the hits: [] array is empty? I assume this is where I would be extracting the data from, because when I query the REST API directly in my browser using http://localhost:9200/observed_range_error/_search?&pretty, it returns the following:
{
"took" : 84,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 1.0,
"hits" : [
{
"_index" : "observed_range_error",
"_type" : "_doc",
"_id" : "GkD2U2oBKZkOEqkMt8yR",
"_score" : 1.0,
"_source" : {
"constellation" : "GPS",
"satelliteId" : "PRN:6",
"timestamp" : "2019-04-23T14:17:11",
"gms" : "RTCM_301",
"ure" : "40.10",
"elevation" : "20.01",
"azimuth" : "160.50"
}
}
]
}
}
As you can see, the hits array is populated there.
So my question is, why when using the courier request, is the hits array empty, despite the total hits being greater than 0? Is this just a limitation of the developer console, where it doesn't display the values? I don't see how I can extract the data I need from what is being returned to me at this point.
