Hello experts,
I'm currently trying to sort search results by double_range or float_range field,but return a server error:array_index_out_of_bounds_exception,I've included the query and the error output, is this supported, and/or is there any workarounds?
this is mapping setting:
this is documents
this is request body and results
POST */_search
{
"_source":true,
"aggs":{
},
"from":0,
"highlight":{
"fields":{
"*":{
"fragment_size":10000
}
},
"post_tags":[
"@/kibana-highlighted-field@"
],
"pre_tags":[
"@kibana-highlighted-field@"
],
"require_field_match":false
},
"query":{
"bool":{
"filter":[],
"must":[
{
"query_string":{
"analyze_wildcard":true,
"default_field":"*",
"lenient":true,
"query":"*",
"type":"phrase"
}
}
],
"must_not":[],
"should":[]
}
},
"size":10,
"sort":[
{
"double_range":{
"missing":"_last",
"order":"desc",
"unmapped_type":"double_range"
}
}
]
}
Looking forward to any help! Thank you!