Skip to content

Commit e4f158a

Browse files
committed
added comment
1 parent 9f33249 commit e4f158a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/test/java/org/elasticsearch/index/mapper/RuntimeFieldSourceProviderOptimizationTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
import static org.elasticsearch.xcontent.XContentFactory.jsonBuilder;
3232
import static org.hamcrest.Matchers.equalTo;
3333

34+
/**
35+
* Tests that source provider optimization that filters _source based on the same of source only runtime fields kick in.
36+
* This is important for synthetic source, otherwise many doc value and stored fields get loaded in the process.
37+
*/
3438
public class RuntimeFieldSourceProviderOptimizationTests extends ESSingleNodeTestCase {
3539

3640
public void testWithSourceProviderOptimization() throws IOException {

0 commit comments

Comments
 (0)