Update the Index Definition document

This procedure describes how to modify the Index Definition document to upgrade your Content Store to DITA CMS 4.3.

These changes are required to implement new features.

Note: IXIASOFT recommends that you change the Index Definition document during off hours only. This operation will require a reindexing of the modified indexes, which will reduce the performance of the TEXTML Server.
When adding new indexes to the index definition, IXIASOFT recommends that you add them in alphabetical order.

To update the Index Definition document:

  1. Open a TEXTML Server Console Java.
  2. Connect to the server and Content Store to upgrade.
  3. Expand the Content Store node to display the Index Definition.
  4. Right-click Index Definition and select Lock.
  5. Open the Index Definition document in an XML editor.
  6. Under <indexes> add the following <index> element:
    <index CUSTOMPROPERTY="True" NAME="assignment_comment" SYNC="False">  
    	<!-- System index required by the DITA CMS -->   
    	<stringindex KEEPEXTRACTEDVALUES="True">    
    		<elements>     
    			<element DEPTH="INFINITE" XPATH="string-join(//assignment/comment/text(),', ')"/>    
    		</elements>   
    	</stringindex>
    </index>
  7. Under <indexes> add the following <index> element:
    <index CUSTOMPROPERTY="True" NAME="fragmentreferences" SYNC="True">
    	<!-- System index required by the DITA CMS -->
    	<stringindex KEEPEXTRACTEDVALUES="True">
    		<elements>
    			<element DEPTH="0" XPATH="//reference[@contentDependency='true'][not(@keyref)][not(@conkeyref)]/concat('srcRef=', @srcRef, ', text=', text())"/>
    		</elements>
    	</stringindex>
    </index>
  8. Under <summaries>\<summary NAME="fullsummary">, add the following <field> elements:
    Note: IXIASOFT recommends that you add them in alphabetical order.
    <field NAME="CreationDate" TYPE="Property" VALUE="All"/>
    <field NAME="CreationTime" TYPE="Property" VALUE="All"/>
  9. Locate the following <index> element:
    <index NAME="type" SYNC="True">
    <!-- Index referenced by the Advanced Search on attributes -->
    	<stringindex KEEPEXTRACTEDVALUES="False">
    		<elements>
    			<element DEPTH="INFINITE" XPATH="//@type"/>
    		</elements>
    	</stringindex>
    </index>
  10. In the index, delete SYNC="True".
    Example:
    <index NAME="type">
    <!-- Index referenced by the Advanced Search on attributes -->
    	<stringindex KEEPEXTRACTEDVALUES="False">
    		<elements>
    			<element DEPTH="INFINITE" XPATH="//@type"/>
    		</elements>
    	</stringindex>
    </index>
  11. Locate the following <index> element:
    <index NAME="wordCount" SYNC="True">
    	<numericindex KEEPEXTRACTEDVALUES="True">
    		<integerindexproperties/>
    		<elements>
    			<element DEPTH="0" XPATH="string-length(normalize-space(string(/))) - string-length(replace(normalize-space(string(/)), ' ', ''))" />
    		</elements>
    	</numericindex>
    </index>
  12. In the index, delete SYNC="True".
    <index NAME="wordCount">
    	<numericindex KEEPEXTRACTEDVALUES="True">
    		<integerindexproperties/>
    		<elements>
    			<element DEPTH="0" XPATH="string-length(normalize-space(string(/))) - string-length(replace(normalize-space(string(/)), ' ', ''))" />
    		</elements>
    	</numericindex>
    </index>
  13. Right-click the Index Definition document and select Check In.