Closed
Description
FunctionScoreQuery
can be cached on a per-segment basis in the Lucene query cache. However a recent refactoring made them depend on the QueryShardContext
so the query cache can now keep references to old index readers.
That should be considered as a leak since this memory is not taken into account in the cache size.