if (indexField == null) {
throw new IllegalArgumentException("The parsed IndexField name MUST NOT be NULL!");
}
List<String> fieldNames = indexFieldMappings.get(indexField);
if (fieldNames == null) {
SpecialFieldEnum specialField = indexField.getSpecialField();//check for special field;
if(specialField != null){
switch (specialField) {
case fullText:
fieldNames = Collections.singletonList(getFullTextSearchField());
break;
case references:
fieldNames = Collections.singletonList(getReferredDocumentField());
break;
default:
throw new IllegalStateException("Unsupported Special Field '"
+specialField.getUri()+"! Please report this to the "
+ "Stanbol Developer Mailing list or create an according"
+ "JIRA issue at https://issues.apache.org/jira/browse/STANBOL!");
}
} else {
fieldNames = new ArrayList<String>(2); //typically only 1 or 2 values