OpenSearch/test
Julie Tibshirani dfd7f226f0
Clarify SourceLookup sharing across fetch subphases. (#60484)
The `SourceLookup` class provides access to the _source for a particular
document, specified through `SourceLookup#setSegmentAndDocument`. Previously
the search context contained a single `SourceLookup` that was shared between
different fetch subphases. It was hard to reason about its state: is
`SourceLookup` set to the expected document? Is the _source already loaded and
available?

Instead of using a global source lookup, the fetch hit context now provides
access to a lookup that is set to load from the hit document.

This refactor closes #31000, since the same `SourceLookup` is no longer shared
between the 'fetch _source phase' and script execution.
2020-07-30 13:22:31 -07:00
..
fixtures Ensure fixture runtime dependencies are built before starting containers (#59474) 2020-07-13 15:58:01 -07:00
framework Clarify SourceLookup sharing across fetch subphases. (#60484) 2020-07-30 13:22:31 -07:00
logger-usage Replace compile configuration usage with api (7.x backport) (#58721) 2020-06-30 15:57:41 +02:00
build.gradle Unify dependency licenses task configuration (#58116) (#58274) 2020-06-18 08:15:50 +02:00