data.WEB-INF.config.opencms-search.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opencms-test Show documentation
Show all versions of opencms-test Show documentation
OpenCms is an enterprise-ready, easy to use website content management system based on Java and XML technology. Offering a complete set of features, OpenCms helps content managers worldwide to create and maintain beautiful websites fast and efficiently.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE opencms SYSTEM "http://www.opencms.org/dtd/6.0/opencms-search.dtd"> <opencms> <search> <solr enabled="true"> <commitWithinMs>10000</commitWithinMs> </solr> <directory>index</directory> <timeout>60000</timeout> <offlineUpdateFrequency>30000</offlineUpdateFrequency> <maxIndexWaitTime>30000</maxIndexWaitTime> <forceunlock>onlyfull</forceunlock> <excerpt>1024</excerpt> <extractionCacheMaxAge>672.0</extractionCacheMaxAge> <maxModificationsBeforeCommit>20</maxModificationsBeforeCommit> <highlighter>org.opencms.search.documents.CmsTermHighlighterHtml</highlighter> <documenttypes> <documenttype> <name>generic</name> <class>org.opencms.search.documents.CmsDocumentGeneric</class> <mimetypes /> <resourcetypes> <resourcetype>*</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>html</name> <class>org.opencms.search.documents.CmsDocumentHtml</class> <mimetypes> <mimetype>text/html</mimetype> </mimetypes> <resourcetypes> <resourcetype>plain</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>image</name> <class>org.opencms.search.documents.CmsDocumentGeneric</class> <mimetypes /> <resourcetypes> <resourcetype>image</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>jsp</name> <class>org.opencms.search.documents.CmsDocumentPlainText</class> <mimetypes /> <resourcetypes> <resourcetype>jsp</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>pdf</name> <class>org.opencms.search.documents.CmsDocumentPdf</class> <mimetypes> <mimetype>application/pdf</mimetype> </mimetypes> <resourcetypes> <resourcetype>binary</resourcetype> <resourcetype>plain</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>rtf</name> <class>org.opencms.search.documents.CmsDocumentRtf</class> <mimetypes> <mimetype>text/rtf</mimetype> <mimetype>application/rtf</mimetype> </mimetypes> <resourcetypes> <resourcetype>binary</resourcetype> <resourcetype>plain</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>text</name> <class>org.opencms.search.documents.CmsDocumentPlainText</class> <mimetypes> <mimetype>text/html</mimetype> <mimetype>text/plain</mimetype> </mimetypes> <resourcetypes> <resourcetype>plain</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>xmlcontent</name> <class>org.opencms.search.documents.CmsDocumentXmlContent</class> <mimetypes /> <resourcetypes> <resourcetype>*</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>containerpage</name> <class>org.opencms.search.documents.CmsDocumentContainerPage</class> <mimetypes> <mimetype>text/html</mimetype> </mimetypes> <resourcetypes> <resourcetype>containerpage</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>xmlpage</name> <class>org.opencms.search.documents.CmsDocumentXmlPage</class> <mimetypes> <mimetype>text/html</mimetype> </mimetypes> <resourcetypes> <resourcetype>xmlpage</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>xmlcontent-solr</name> <class>org.opencms.search.solr.CmsSolrDocumentXmlContent</class> <mimetypes> <mimetype>text/html</mimetype> </mimetypes> <resourcetypes> <resourcetype>xmlcontent-solr</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>containerpage-solr</name> <class>org.opencms.search.solr.CmsSolrDocumentContainerPage</class> <mimetypes> <mimetype>text/html</mimetype> </mimetypes> <resourcetypes> <resourcetype>containerpage-solr</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>msoffice-ole2</name> <class>org.opencms.search.documents.CmsDocumentMsOfficeOLE2</class> <mimetypes> <mimetype>application/vnd.ms-powerpoint</mimetype> <mimetype>application/msword</mimetype> <mimetype>application/vnd.ms-excel</mimetype> </mimetypes> <resourcetypes> <resourcetype>binary</resourcetype> <resourcetype>plain</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>msoffice-ooxml</name> <class>org.opencms.search.documents.CmsDocumentMsOfficeOOXML</class> <mimetypes> <mimetype>application/vnd.openxmlformats-officedocument.wordprocessingml.document</mimetype> <mimetype>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mimetype> <mimetype>application/vnd.openxmlformats-officedocument.presentationml.presentation</mimetype> </mimetypes> <resourcetypes> <resourcetype>binary</resourcetype> <resourcetype>plain</resourcetype> </resourcetypes> </documenttype> <documenttype> <name>openoffice</name> <class>org.opencms.search.documents.CmsDocumentOpenOffice</class> <mimetypes> <mimetype>application/vnd.oasis.opendocument.text</mimetype> <mimetype>application/vnd.oasis.opendocument.spreadsheet</mimetype> </mimetypes> <resourcetypes> <resourcetype>binary</resourcetype> <resourcetype>plain</resourcetype> </resourcetypes> </documenttype> </documenttypes> <analyzers> <analyzer> <class>org.apache.lucene.analysis.de.GermanAnalyzer</class> <locale>de</locale> </analyzer> <analyzer> <class>org.apache.lucene.analysis.en.EnglishAnalyzer</class> <locale>en</locale> </analyzer> <analyzer> <class>org.apache.lucene.analysis.fr.FrenchAnalyzer</class> <locale>fr</locale> </analyzer> <analyzer> <class>org.apache.lucene.analysis.it.ItalianAnalyzer</class> <locale>it</locale> </analyzer> <analyzer> <class>org.apache.lucene.analysis.standard.StandardAnalyzer</class> <locale>all</locale> </analyzer> </analyzers> <indexes> <index> <name>Online project (VFS)</name> <rebuild>manual</rebuild> <project>Online</project> <locale>en</locale> <sources> <source>source1</source> </sources> </index> <index> <name>Offline project (VFS)</name> <rebuild>manual</rebuild> <project>Offline</project> <locale>en</locale> <configuration>standard</configuration> <sources> <source>source1</source> </sources> </index> <!-- Solr Online not needed - may even break test cases --> <!-- <index class="org.opencms.search.solr.CmsSolrIndex"> <name>Solr Online</name> <rebuild>auto</rebuild> <project>Online</project> <locale>all</locale> <configuration>solr_fields</configuration> <sources> <source>solr_source</source> </sources> <param name="search.solr.postProcessor">org.opencms.search.solr.CmsSolrLinkProcessor</param> </index> <index class="org.opencms.search.solr.CmsSolrIndex"> <name>Solr Offline</name> <rebuild>offline</rebuild> <project>Offline</project> <locale>all</locale> <configuration>solr_fields</configuration> <sources> <source>solr_source</source> </sources> <param name="search.solr.postProcessor">org.opencms.search.solr.CmsSolrLinkProcessor</param> </index> --> </indexes> <indexsources> <indexsource> <name>source1</name> <indexer class="org.opencms.search.CmsVfsIndexer" /> <resources> <resource>/sites/default/</resource> </resources> <documenttypes-indexed> <name>xmlpage</name> <name>xmlcontent</name> <name>containerpage</name> <name>text</name> <name>pdf</name> <name>rtf</name> <name>html</name> <name>image</name> <name>generic</name> <name>msoffice-ole2</name> <name>msoffice-ooxml</name> <name>openoffice</name> </documenttypes-indexed> </indexsource> <indexsource> <name>solr_source</name> <indexer class="org.opencms.search.CmsVfsIndexer" /> <resources> <resource>/</resource> </resources> <documenttypes-indexed> <name>xmlcontent-solr</name> <name>containerpage-solr</name> <name>xmlpage</name> <name>text</name> <name>jsp</name> <name>pdf</name> <name>rtf</name> <name>html</name> <name>image</name> <name>generic</name> <name>msoffice-ole2</name> <name>msoffice-ooxml</name> <name>openoffice</name> </documenttypes-indexed> </indexsource> </indexsources> <fieldconfigurations> <fieldconfiguration class="org.opencms.search.fields.CmsSearchFieldConfigurationOldCategories"> <name>standard</name> <description>The standard OpenCms search index field configuration.</description> <fields> <field name="content" store="compress" index="true" excerpt="true"> <mapping type="content" /> </field> <field name="title-key" store="true" index="untokenized" boost="0.0"> <mapping type="property">Title</mapping> </field> <field name="title" store="false" index="true"> <mapping type="property">Title</mapping> </field> <field name="keywords" store="true" index="true"> <mapping type="property">Keywords</mapping> </field> <field name="description" store="true" index="true"> <mapping type="property">Description</mapping> </field> <field name="meta" store="false" index="true"> <mapping type="property">Title</mapping> <mapping type="property">Keywords</mapping> <mapping type="property">Description</mapping> </field> <field name="special" store="true" index="true"> <mapping type="item">special</mapping> <mapping type="item">Teaser[1]</mapping> <mapping type="item">Teaser[2]</mapping> <mapping type="item">Teaser[3]</mapping> <mapping type="property">NavText</mapping> <mapping type="property-search">search.special</mapping> </field> </fields> </fieldconfiguration> <fieldconfiguration class="org.opencms.search.solr.CmsSolrFieldConfiguration"> <name>solr_fields</name> <description>The Solr search index field configuration.</description> <fields /> </fieldconfiguration> </fieldconfigurations> </search> </opencms>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy