throw new SearchException( "Not a mapped entity (don't forget to add @Indexed): " + clazz );
}
DocumentBuilderIndexedEntity builder = entityIndexBinding.getDocumentBuilder();
if ( builder.getIdKeywordName() != null ) {
idFieldNames.add( builder.getIdKeywordName() );
allowFieldSelectionInProjection = allowFieldSelectionInProjection && builder.allowFieldSelectionInProjection();
}
searcherSimilarity = checkSimilarity( searcherSimilarity, entityIndexBinding.getSimilarity() );
useFieldCacheOnClassTypes = useFieldCacheOnClassTypes || builder.getFieldCacheOption()
.contains( FieldCacheType.CLASS );
populateIndexManagers( targetedIndexes, entityIndexBinding.getSelectionStrategy() );