How can I add a specialized element that we created to the advanced search?
You can create an index to display the specialized element in the advanced search.
Description
We created a specialized element called <edition>
and want to be able to search for it in the advanced
search using the element type drop-down list.
Solution
In the TEXTML Administration
perspective, perform the following:
- Edit the Index Definition file.CAUTION: Be careful when editing the Index Definition document. Changes can significantly affect the indexing process, and any errors in the document can lead to data corruption or other errors.
- Add the following index:
<index NAME="edition" SYNC="False"> <stringindex KEEPEXTRACTEDVALUES="True"> <elements> <element DEPTH="INFINITE" XPATH="//edition"/> </elements> </stringindex> </index>
- To add the index to the Advanced
Search panel in the Search view, edit the system/conf/advancedSearchIndexes.xml file and add the
following:
<index display="Edition" listable="false" name="edition" type="index" views="ALL"/>
- When the indexing is complete, restart your IXIASOFT CCMS Desktop.