for (DiscoveryHitHighlightFieldConfiguration fieldConfiguration : fieldConfigurations)
{
hitHighlightingFields.add(fieldConfiguration.getField());
}
}
DiscoveryMoreLikeThisConfiguration moreLikeThisConfiguration = discoveryConfiguration.getMoreLikeThisConfiguration();
if(moreLikeThisConfiguration != null)
{
for(String metadataField : moreLikeThisConfiguration.getSimilarityMetadataFields())
{
moreLikeThisFields.add(metadataField);
}
}
}