Opencms-search.xml
From OpenCms Wiki
(Difference between revisions)
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | + | The search configuration is done in WEB-INF/config/opencms-search.xml. The configuration is specified in the following XML format: | |
− | + | ||
− | + | ||
+ | ===Example opencms-search xml=== | ||
<indexsource> | <indexsource> | ||
<name>source1</name> | <name>source1</name> | ||
− | + | <indexer class="org.opencms.search.CmsVfsIndexer" /> | |
− | + | <resources> | |
− | + | <resource>/sites/default/</resource> | |
− | + | </resources> | |
− | + | <documenttypes-indexed> | |
− | + | <name>xmlpage</name> | |
− | + | <name>page</name> | |
− | + | <name>text</name> | |
− | + | <name>pdf</name> | |
− | + | <name>msword</name> | |
− | + | <name>msexcel</name> | |
− | + | <name>image</name> | |
− | + | <name>generic</name> | |
− | + | </documenttypes-indexed> | |
− | + | </indexsource> | |
+ | </indexsource> | ||
+ | |||
+ | [[Category:Configuration Files]] |
Latest revision as of 17:17, 4 July 2011
The search configuration is done in WEB-INF/config/opencms-search.xml. The configuration is specified in the following XML format:
Example opencms-search xml
<indexsource> <name>source1</name> <indexer class="org.opencms.search.CmsVfsIndexer" /> <resources> <resource>/sites/default/</resource> </resources> <documenttypes-indexed> <name>xmlpage</name> <name>page</name> <name>text</name> <name>pdf</name> <name>msword</name> <name>msexcel</name> <name>image</name> <name>generic</name> </documenttypes-indexed> </indexsource> </indexsource>