How to update the configuration of a CAS recordstore

There are instances where we need to reconfigure/update the configuration of a CAS Recordstore. This might be needed during a migration, or updating the ID for the record store.

The reconfiguration of a CAS recordstore is  2 step process

Step 1:  Go to CAS bin directory – <Endeca-Installation>/CAS/11.0.0/bin

cd  <Endeca-Installation>/CAS/11.0.0/bin

Step 2 :  Run recordstore-cmd command

./recordstore-cmd.sh set-configuration -a CRS_en_data -f <Endeca-Installation>/apps/CRS/config/cas/CRS_sku_cfg.xml

This will update the configuration of CRS_en_data record stores with the configuration listed in CRS_sku_cfg.xml.

Sample config xml file (from oracle documentation – use only the configuration that you might need)

<?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>
<recordStoreConfiguration xmlns=”http://recordstore.itl.endeca.com/”>
 <btreePageSize>100</btreePageSize>
    <changePropertyNames/>
    <cleanerInterval>1.0</cleanerInterval>
    <dataDirectory>C:\Endeca\CAS\workspace\state\RS1\data</dataDirectory>
    <duplicateRecordCompressionEnabled>false</duplicateRecordCompressionEnabled>
    <generationRetentionTime>168.0</generationRetentionTime>
    <idPropertyName>Endeca.Id</idPropertyName>
    <ignoreInvalidRecords>false</ignoreInvalidRecords>
    <indexWriteFlushInterval>50000</indexWriteFlushInterval>
    <jdbmSettings/>
    <maxDataFileSize>2147483647</maxDataFileSize>
    <recordCompressionEnabled>false</recordCompressionEnabled>
</recordStoreConfiguration>

Other useful links :

How to read data from CAS recordstore
How to get List of CAS Recordstores

Leave a Reply