//ADD REVERSE ANALYZERS
if (reverseAttributes != null && reverseAttributes.contains(fieldname)) {
addedReverseAttributes.add(fieldname);
ReverseAnalyzer reverseAnalyzer = new ReverseAnalyzer(analyzerInstance);
analyzerWrapper.addAnalyzer(fieldname + REVERSE_ATTRIBUTE_SUFFIX, reverseAnalyzer);
configuredAnalyzerMap.put(fieldname + REVERSE_ATTRIBUTE_SUFFIX, reverseAnalyzer.getClass()
.getCanonicalName());
}
}
}
//ADD ALL NON CONFIGURED REVERSE ANALYZERS
if (reverseAttributes != null && reverseAttributes.size() > 0) {
for (String att : reverseAttributes) {
if (!addedReverseAttributes.contains(att)) {
ReverseAnalyzer reverseAnalyzer = new ReverseAnalyzer(null);
analyzerWrapper.addAnalyzer(att + REVERSE_ATTRIBUTE_SUFFIX, reverseAnalyzer);
configuredAnalyzerMap.put(att + REVERSE_ATTRIBUTE_SUFFIX, reverseAnalyzer.getClass()
.getCanonicalName());
}
}
}
}