When searching for the term "no" it only returns a single search result. However when I search for a more specific term like "normal" it returns 3 results all having normal. Why would the more general search yield fewer results? Why would query for "no" not yield all results with the word "normal"?
Only a Single Results
{
"from":0,
"size":25,
"query":{
"multi_match":{
"query":"no",
"fields":[
"_all"
],
"type":"phrase_prefix",
"lenient":true
}
},
"post_filter":{
"bool":{
"must":[
{
"range":{
"created":{
"from":"2018-01-01T06:00:00.000Z",
"to":"2018-07-30T19:35:06.646Z",
"include_lower":true,
"include_upper":true
}
}
},
{
"terms":{
"payer.id":[
15350
]
}
},
{
"terms":{
"status":[
"created",
"errored",
"publish_complete",
"reconcile_in_progress",
"reconcile_approved",
"reconcile_complete",
"reconcile_failed",
"reconcile_cancelled",
"reconcile_declined",
"duplicate"
]
}
}
]
}
},
"sort":[
{
"created":{
"order":"desc"
}
}
]
}
Yields 3 Records
{
"from":0,
"size":25,
"query":{
"multi_match":{
"query":"normal",
"fields":[
"_all"
],
"type":"phrase_prefix",
"lenient":true
}
},
"post_filter":{
"bool":{
"must":[
{
"range":{
"created":{
"from":"2018-01-01T06:00:00.000Z",
"to":"2018-07-30T19:35:06.646Z",
"include_lower":true,
"include_upper":true
}
}
},
{
"terms":{
"payer.id":[
15350
]
}
},
{
"terms":{
"status":[
"created",
"errored",
"publish_complete",
"reconcile_in_progress",
"reconcile_approved",
"reconcile_complete",
"reconcile_failed",
"reconcile_cancelled",
"reconcile_declined",
"duplicate"
]
}
}
]
}
},
"sort":[
{
"created":{
"order":"desc"
}
}
]
}