@Test
public void projection_withCompatibleScope_noProjectionConverter() {
StubMappingScope originalScope = indexManager.createScope();
StubMappingScope compatibleScope = compatibleIndexManager.createScope();
for ( FieldModel<?> fieldModel : indexMapping.supportedFieldModels ) {
SubTest.expectSuccess( fieldModel, model -> {
String fieldPath = model.relativeFieldName;
assertThat(
compatibleScope.query()
.asProjection( originalScope.projection().field( fieldPath, model.type ).toProjection() )
.predicate( f -> f.matchAll() )
.toQuery()
).hasHitsAnyOrder(
model.document1Value.indexedValue );
} );
}
}