Skip to content

[Feature Request] Inner queries for has_parent and has_child should be eligible for caching in the query cache #17096

@jhinch-at-atlassian-com

Description

Is your feature request related to a problem? Please describe

GlobalOrdinalsQuery which is used by has_parent and has_child queries is not eligible for query caching as it makes use of global ordinals and so isn't segment cacheable. However its inner query should be as it doesn't use the global ordinals but currently isn't due to HasChildQueryBuilder.LateParsingQuery not propagating the query cache to the IndexerSearcher used for the inner query.

Describe the solution you'd like

Allow for the inner query to be cached, improving performance of join queries

Related component

Search:Performance

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions