Hi,
I just noticed an unexpected (IMHO) result when trying the following query:
testES1.em
{
"explain" : false,
"from" : 1,
"size" : 10,
"sort" : [ { "_score" : { } } ],
"query" : {
"filtered" : {
"query" : {
"bool" : {
"must" : { "field" : { "_all" : "noche" } },
This file has been truncated. show original
As it has no results, but it does have facets though, the result is:
ResultES
[{
"hits": {
"hits": [],
"max_score": 2.733024,
"total": 1
},
"timed_out": false,
"took": 20,
"_shards": {
"failed": 0,
This file has been truncated. show original
So my code interprets that there is actually 1 result, as total = 1. Is this
expected behaviour or not?
Thanks.
kimchy
(Shay Banon)
February 12, 2011, 3:27pm
2
You specify the from to be 1, from is 0 based, maybe thats the problem?
On Friday, February 11, 2011 at 4:10 PM, Enrique Medina Montenegro wrote:
Hi,
I just noticed an unexpected (IMHO) result when trying the following query:
JSON query · GitHub
As it has no results, but it does have facets though, the result is:
Result JSON for ES query · GitHub
So my code interprets that there is actually 1 result, as total = 1. Is this expected behaviour or not?
Thanks.
Yeah, that was the issue. Gotcha on my side!!!
On Sat, Feb 12, 2011 at 4:27 PM, Shay Banon shay.banon@elasticsearch.com wrote:
You specify the from to be 1, from is 0 based, maybe thats the problem?
On Friday, February 11, 2011 at 4:10 PM, Enrique Medina Montenegro wrote:
Hi,
I just noticed an unexpected (IMHO) result when trying the following query:
JSON query · GitHub
As it has no results, but it does have facets though, the result is:
Result JSON for ES query · GitHub
So my code interprets that there is actually 1 result, as total = 1. Is
this expected behaviour or not?
Thanks.