* @param type
* @return empty string if {@link SolrDocument} not present or {@link SolrDocument#solrCoreName()} is blank.
* @since 1.1
*/
public static String resolveSolrCoreName(Class<?> type) {
SolrDocument annotation = AnnotationUtils.findAnnotation(type, SolrDocument.class);
if (annotation != null && StringUtils.isNotBlank(annotation.solrCoreName())) {
return annotation.solrCoreName();
}
return "";
}