private void checkForField(XClass classHostingMember, XProperty member, PropertiesMetadata propertiesMetadata,
String prefix, ConfigContext context) {
org.hibernate.search.annotations.Field fieldAnn =
member.getAnnotation( org.hibernate.search.annotations.Field.class );
NumericField numericFieldAnn = member.getAnnotation( NumericField.class );
DocumentId idAnn = member.getAnnotation( DocumentId.class );
if ( fieldAnn != null ) {
bindFieldAnnotation( classHostingMember, member, propertiesMetadata, prefix, fieldAnn, numericFieldAnn, context );
}
if ( ( fieldAnn == null && idAnn == null ) && numericFieldAnn != null ) {
throw new SearchException( "@NumericField without a @Field on property '" + member.getName() + "'" );