All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opencms.configuration.opencms-search.xml Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 18.0
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE opencms SYSTEM "http://www.opencms.org/dtd/6.0/opencms-search.dtd">

<opencms>
	<search class="org.opencms.configuration.CmsCustomSearchManager">
		<directory>index</directory>
		<timeout>60000</timeout>
		<offlineUpdateFrequency>30000</offlineUpdateFrequency>
		<maxIndexWaitTime>30000</maxIndexWaitTime>
		<forceunlock>onlyfull</forceunlock>
		<excerpt>1024</excerpt>	
		<extractionCacheMaxAge>672.0</extractionCacheMaxAge>
        <maxModificationsBeforeCommit>4711</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>msexcel</name>
				<class>org.opencms.search.documents.CmsDocumentMsExcel</class>
				<mimetypes>
					<mimetype>application/vnd.ms-excel</mimetype>
				</mimetypes>
				<resourcetypes>
					<resourcetype>binary</resourcetype>
					<resourcetype>plain</resourcetype>
				</resourcetypes>
			</documenttype>		
			<documenttype>
				<name>mspowerpoint</name>
				<class>org.opencms.search.documents.CmsDocumentMsPowerPoint</class>
				<mimetypes>
					<mimetype>application/vnd.ms-powerpoint</mimetype>
				</mimetypes>
				<resourcetypes>
					<resourcetype>binary</resourcetype>
					<resourcetype>plain</resourcetype>
				</resourcetypes>
			</documenttype>
			<documenttype>
				<name>msword</name>
				<class>org.opencms.search.documents.CmsDocumentMsWord</class>
				<mimetypes>
					<mimetype>application/msword</mimetype>
				</mimetypes>
				<resourcetypes>
					<resourcetype>binary</resourcetype>
					<resourcetype>plain</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>xmlpage</name>
				<class>org.opencms.search.documents.CmsDocumentXmlPage</class>
				<mimetypes>
					<mimetype>text/html</mimetype>
				</mimetypes>
				<resourcetypes>
					<resourcetype>xmlpage</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.standard.StandardAnalyzer</class>
				<locale>all</locale>
			</analyzer>
			<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>
		</analyzers>
		<indexes>
			<index>
				<name>Online project (VFS)</name>
				<rebuild>manual</rebuild>
				<project>Online</project>
				<locale>en</locale>
				<sources>
					<source>source1</source>
				</sources>		
                <param name="org.opencms.search.CmsSearchIndex.checkTimeRange">true</param>                
			</index>
			<index>
				<name>Offline project (VFS)</name>
				<rebuild>manual</rebuild>
				<project>Offline</project>
				<locale>en</locale>
				<configuration>standard</configuration>	
				<sources>
					<source>source1</source>
				</sources>
				<param name="org.opencms.search.CmsSearchIndex.checkPermissions">false</param>				
				<param name="org.opencms.search.CmsSearchIndex.checkTimeRange">false</param>				
				<param name="org.opencms.search.CmsSearchIndex.createExcerpt">false</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>page</name>
	                <name>text</name>
	                <name>pdf</name>
	                <name>rtf</name>
	                <name>html</name>
	                <name>msword</name>
	                <name>msexcel</name>
	                <name>mspowerpoint</name>
	                <name>image</name>
	                <name>generic</name>
				</documenttypes-indexed>				
			</indexsource>
		</indexsources>	
		<fieldconfigurations>
			<fieldconfiguration>
				<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>
					<field name="specialTwo" store="false" index="true" boost="0.1" analyzer="WhitespaceAnalyzer">
						<mapping type="dynamic" class="org.opencms.search.fields.CmsSearchFieldMapping">specialTwo</mapping>
					</field>						
				</fields>
			</fieldconfiguration>	
		</fieldconfigurations>			
	</search>
</opencms>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy