.entity( Book.class ).indexed()
//Entity missing both @DocumentId and @ProvidedId:
.property( "title", ElementType.FIELD ).field()
.property( "text", ElementType.FIELD ).field()
;
SearchConfigurationForTest cfg = new SearchConfigurationForTest()
.setProgrammaticMapping( mapping )
.addClass( Book.class );
exceptions.expect( SearchException.class );
exceptions.expectMessage( "HSEARCH000177" );
storeBooksViaProvidedId( cfg, ProvidedId.defaultFieldName, false );