Opencms-search.xml

(Difference between revisions)
Jump to: navigation, search
 
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:
+
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
+
===Example opencms-search xml===
  
  
 
     <indexsource>
 
     <indexsource>
 
         <name>source1</name>
 
         <name>source1</name>
                                <indexer class="org.opencms.search.CmsVfsIndexer" />
+
        <indexer class="org.opencms.search.CmsVfsIndexer" />
                                <resources>
+
            <resources>
                                        <resource>/sites/default/</resource>
+
                <resource>/sites/default/</resource>
                                </resources>
+
            </resources>
                                <documenttypes-indexed>
+
            <documenttypes-indexed>
                        <name>xmlpage</name>
+
              <name>xmlpage</name>
                        <name>page</name>
+
              <name>page</name>
                        <name>text</name>
+
              <name>text</name>
                        <name>pdf</name>
+
              <name>pdf</name>
                        <name>msword</name>
+
              <name>msword</name>
                        <name>msexcel</name>
+
              <name>msexcel</name>
                        <name>image</name>
+
              <name>image</name>
                        <name>generic</name>
+
              <name>generic</name>
                                </documenttypes-indexed>
+
            </documenttypes-indexed>
                        </indexsource>
+
        </indexsource>
 +
  </indexsource>

Revision as of 11:20, 27 January 2007

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>
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox