The
set-configuration task sets configuration settings for a
specified Record Store instance.
You can configure a new Record Store instance or reconfigure an existing Record Store instance by specifying an XML configuration file for it.
The syntax for this task is:
recordstore-cmd set-configuration -a RecordStoreInstanceName -f FileName.xml [-h HostName] [-l true|false] [-p PortNumber]
where:
-a (or --instanceName) specifies the name of a Record Store instance. Required.
-f (or --file) specifies the XML file name that contains the configuration settings for a Record Store. Required.
-h (or --host) specifies the host where the CAS Service is running. If the flag is omitted, the default is the value of the
com.endeca.itl.cas.server.hostproperty incommandline.properties. If the property is not set, the value then defaults to localhost. Optional.-l (or --isPortSsl) specifies whether to communicate with the service using an HTTPS connection. A value of true uses HTTPS and treats the
com.endeca.itl.cas.server.portproperty as an SSL port. A value of false uses HTTP and treatscom.endeca.itl.cas.server.portas a non-SSL port. Specify false if you enabled redirects from a non-SSL port to an SSL port. Optional.-p (or --port) specifies the port of the CAS Service. If the flag is omitted, the default is the value of the
com.endeca.itl.cas.server.portproperty incommandline.properties. If the property is not set, the value then defaults to 8500. Optional.
Note
Example 38. Example of setting the configuration of a Record store
This example sets the configuration for a Record Store named RS2:
recordstore-cmd.bat set-configuration -a RS2 -f config.xml
where the contents of config.xml are as follows:
<?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>
Note
This example deletes all records per the note above.

