I am trying to find a way to indicate to users of an application that there are more results, but filters have caused those results to not be shown.
Suppose a request such as:
{
"query": {
"filtered": {
"filter": {
"bool": {
"must": {
"term": {
"program": "tron"
}
}
}
},
"query": {
"match_all": {}
}
}
}
}
I get a result like:
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : null,
"hits" : [ ]
}
}
In my index, there are other programs like flynn and mcu.
I'd like to know that my filter excluded them. Knowing how many there are is less important than knowing they are or are not there. Is there a way to do this without making a second query?
Please feel free to link to existing answers to this question -- I wasn't able to find them.
Thanks for any help that can be offered!