The
set-config
task sets the index configuration for a
specified owner. You provide the index configuration in a JSON file.
Running this task overwrites any previous index configuration for the
owner. Oracle recommends that developers who modify the index configuration,
use the default
system
owner. This usage separates index configuration
that comes from the
system
owner from configuration that comes from import
operations which are owner by a user-specified owner. If the JSON configuration
file contains index configuration from multiple owners, you must specify the
-o
option with a value of
all
.
If desired, you can also update an Endeca property to become a
dimension by modifying the
jcr:primaryType
from
endeca:property
to
endeca:dimension
. However, you cannot modify it from
dimension to property.
The syntax for this task is:
index_config_cmd set-config [-o OwnerName] -f FileName
Where:
-o
(or--owner
) specifies an import owner for a task. If you specify the-o
option, the task applies only to the owner specified. The option can have an argument ofall
,system
, or a user-specified import owner. Theall
owner includes both thesystem
owner and all import owners. If you omit this option, the task applies to thesystem
owner. Optional.-f
(or--file
) specifies a path to a JSON file that contains the index configuration. Required.
To set the index configuration for an application:
Example 5. Examples of setting the index configuration for an application
This example sets index configuration from three owners.
C:\Endeca\apps\Discover\control>index_config_cmd.bat set-config -f C:\temp\indexConfigAllOwners.json -o all [07.24.12 15:53:58] INFO: Using site Discover at URL http://JSMITH-WIN7:8006/ ifcr with username admin You are attempting to write schema configuration that will be overwritten in the event of a fresh import. Are you sure you want to continue? (y/n) y
This example sets index configuration from an owner named
ATG
.
C:\Endeca\apps\Discover\control>index_config_cmd.bat set-config -f C:\temp\indexConfigATGOwner.json -o ATG [07.24.12 16:23:06] INFO: Using site Discover at URL http://JSMITH-WIN7:8006/ ifcr with username admin You are attempting to write schema configuration that will be overwritten in the event of a fresh import. Are you sure you want to continue? (y/n) y