cfg.setIndexMetadataComplete( true );
verifyIndexCompleteMetadataOption( true, cfg );
}
private void verifyIndexCompleteMetadataOption(boolean expectation, SearchConfigurationForTest cfg) {
SearchMapping mapping = new SearchMapping();
mapping
.entity( Document.class ).indexed().indexName( "index1" )
.property( "id", ElementType.FIELD ).documentId()
.property( "title", ElementType.FIELD ).field()
;
cfg.setProgrammaticMapping( mapping );