Skip to content

Add phase to prefetch doc for query #6719

@clintongormley

Description

@clintongormley

There are a number of APIs which require a doc to be fetched in order to execute a query, eg the geo shapes filter, the terms lookup filter, more like this etc.

Currently every shard which executes the query has to fetch the document separately. We should consider adding a phase which would cause the required document to be fetched by the coordinating node, before the query is dispatched to each shard.

This would mean that the query would need to be parsed on the coordinating node, while today that doesn't happen. Could this possibly be an opt-in flag which the user could specify in the request?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions