private static String _getSearchEngineId(Document document) { String entryClassName = document.get("entryClassName"); Indexer indexer = IndexerRegistryUtil.getIndexer(entryClassName); String searchEngineId = indexer.getSearchEngineId(); if (_log.isDebugEnabled()) { _log.debug("Search engine ID for " + indexer.getClass() + " is " + searchEngineId); } return searchEngineId; }
public static String[] getEntryClassNames() { Set<String> assetEntryClassNames = new HashSet<String>(); for (Indexer indexer : IndexerRegistryUtil.getIndexers()) { for (String className : indexer.getClassNames()) { if (!_excludedEntryClassNames.contains(className)) { assetEntryClassNames.add(className); } } } return assetEntryClassNames.toArray(new String[assetEntryClassNames.size()]); }