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?
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?