while I debug my code, the transport client always return 0 records, but when I copy the request builder's query string to my restful client, and run the query, 100 records return, can't figure out why?
here is all my Search request builder values I get from my IDE debugger:
SearchRequest{searchType=QUERY_THEN_FETCH, indices=[trip-2016-12, trip-2016-11], indicesOptions=IndicesOptions[id=38, ignore_unavailable=false, allow_no_indices=true, expand_wildcards_open=true, expand_wildcards_closed=false, allow_alisases_to_multiple_indices=true, forbid_closed_indices=true], types=[], routing='null', preference='null', requestCache=null, scroll=null, source={
"query" : {
"bool" : {
"filter" : [
{
"range" : {
"startTime" : {
"from" : "2016-11-30T00:00:00.000Z",
"to" : "2016-12-30T00:00:00.000Z",
"include_lower" : true,
"include_upper" : true,
"boost" : 1.0
}
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"ext" : { }
}}
the query I past in my restful client:
http://localhost:9200/trip-2016-11,trip-2016-12/_search?scroll=1m
{
"query" : {
"bool" : {
"filter" : [
{
"range" : {
"startTime" : {
"from" : "2016-11-30T00:00:00.000Z",
"to" : "2016-12-30T00:00:00.000Z",
"include_lower" : true,
"include_upper" : true,
"boost" : 1.0
}
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"ext" : { }
}