/** * Returns the set of names of all configured document types.<p> * * @return the set of names of all configured document types */ protected List<String> getDocumentTypes() { List<String> names = new ArrayList<String>(); for (Iterator<I_CmsDocumentFactory> i = m_documentTypes.values().iterator(); i.hasNext();) { I_CmsDocumentFactory factory = i.next(); names.add(factory.getName()); } return names; }
if (documentFactory.isUsingCache()) { documentFactory.setCache(m_extractionResultCache); for (Iterator<String> key = documentFactory.getDocumentKeys( resourceTypes, mimeTypes).iterator(); key.hasNext();) {
Messages.LOG_INDEXING_WITH_FACTORY_2, m_res.getRootPath(), m_documentType.getName())); LOG.debug(Messages.get().getBundle().key(Messages.LOG_CREATING_INDEX_DOC_0)); Document doc = m_documentType.createDocument(m_cms, m_res, m_index);
if (documentFactory.isUsingCache()) { documentFactory.setCache(m_extractionResultCache); for (Iterator<String> key = documentFactory.getDocumentKeys(resourceTypes, mimeTypes).iterator(); key.hasNext();) { m_documentTypes.put(key.next(), documentFactory);
Messages.LOG_INDEXING_WITH_FACTORY_2, res.getRootPath(), documentFactory.getName())); result = documentFactory.createDocument(cms, res, index);
/** * Returns the set of names of all configured document types.<p> * * @return the set of names of all configured document types */ protected List<String> getDocumentTypes() { List<String> names = new ArrayList<String>(); for (Iterator<I_CmsDocumentFactory> i = m_documentTypes.values().iterator(); i.hasNext();) { I_CmsDocumentFactory factory = i.next(); names.add(factory.getName()); } return names; }
while (i.hasNext()) { CmsSearchIndexSource source = i.next(); if (source.isIndexing(res.getRootPath(), result.getName())) {
/** * Checks if the given resource should be indexed by this index or not.<p> * * @param res the resource candidate * * @return <code>true</code> if the given resource should be indexed or <code>false</code> if not */ protected boolean isIndexing(CmsResource res) { if ((res != null) && (getSources() != null)) { I_CmsDocumentFactory result = OpenCms.getSearchManager().getDocumentFactory(res); for (CmsSearchIndexSource source : getSources()) { if (source.isIndexing(res.getRootPath(), CmsSolrDocumentContainerPage.TYPE_CONTAINERPAGE_SOLR) || source.isIndexing(res.getRootPath(), CmsSolrDocumentXmlContent.TYPE_XMLCONTENT_SOLR) || source.isIndexing(res.getRootPath(), result.getName())) { return true; } } } return false; }
if (source.isIndexing(res.getRootPath(), result.getName()) || (source.isIndexing(res.getRootPath(), TYPE_XMLCONTENT) && CmsResourceTypeXmlContent.isXmlContent(res))) {