-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Labels
Search:PerformanceenhancementEnhancement or improvement to existing feature or requestEnhancement or improvement to existing feature or request
Description
Is your feature request related to a problem? Please describe
In #13788, we introduce ApproximatePointRangeQuery for long and date type. However, several potential optimizations remain to be explored:
ApproximatePointRangeQueryis only used inlongtype, but doesn't used ininteger,double,floattype, we can extend theApproximatePointRangeQueryto those numeric types.ApproximatePointRangeQuerycan't used in the followdsl, which just add aboolon the outer compared with the standarddsl.
GET logs1/_search
{
"query": {
"bool": {
"must": [
{
"range": {
"size": {
"from": 1
}
}
}
]
}
}
}
- Consider extending
ApproximatePointRangeQueryto term queries. For low-cardinality field, this could yield better optimization results. - For the
ApproximatePointRangeQuery, we will visit at leasttrackTotalHitsUpTo(defalut 10k) docs inBKDtree, it may be more efficient to limit the visit to thesize(default: 10) to reduce unnecessary overhead for the non-scoring case.
Describe the solution you'd like
no
Related component
Search:Performance
Describe alternatives you've considered
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Search:PerformanceenhancementEnhancement or improvement to existing feature or requestEnhancement or improvement to existing feature or request
Type
Projects
Status
🆕 New