Because we use DirectoryReader we can let the lucene test framework randomily wrap the readers in our aggregation unit tests:
5bbfb6c#diff-ab07a3e29560885c391583295d69c3d1R101
If we would change all field data and field data cache signatures to use BaseCompositeReader instead of DirectoryReader we would be able to randomily wrap readers in these tests.
Because we use
DirectoryReaderwe can let the lucene test framework randomily wrap the readers in our aggregation unit tests:5bbfb6c#diff-ab07a3e29560885c391583295d69c3d1R101
If we would change all field data and field data cache signatures to use
BaseCompositeReaderinstead ofDirectoryReaderwe would be able to randomily wrap readers in these tests.