The
get-config
task retrieves the index configuration for an
application.
The syntax for this task is:
index_config_cmd get-config [-o OwnerName] [-f FileName] [-r] [-t precedenceRules|attributes|searchIndexConfig]
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 user-specified 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 output file that contains the index configuration. Omitting the-f
option prints the index configuration to standard out. Optional.-r
(or--repositoryMetadata
) specifies whether to return metadata about each attribute value in the index configuration. Metadata for an attribute includes properties such asjcr:lastModifiedBy
,jcr:createdBy
,jcr:created
,jcr:lastModified
, and so on. Optional.-t
(or--type
) specifies the type of index configuration you want the task to return. The arguments areprecedenceRules
,attributes
, andsearchIndexConfig
. SpecifyingprecedenceRules
returns only precedence rules in the index configuration, or none. Specifyingattributes
returns the attributes in the index configuration. SpecifyingsearchIndexConfig
returns only the global index configuration settings. Omitting the-t
option returns all types of index configuration. Optional.
Note
There is a size limit on the total number of attributes and
precedence rules the task can retrieve. If the index configuration that you are
retrieving contains more than approximately 10,000 attributes and precedence
rules, the
get-config
task returns a
Multiple Choices (300)
error.
To get the index configuration for an application:
Example 3. Example of getting the index configuration for an application
C:\Endeca\apps\Discover\control>index_config_cmd.bat get-config [07.23.12 15:50:54] INFO: Using site Discover at URL http://JSMITH-WIN7:8006/ ifcr with username admin { "indexConfig" : { "system" : { "attributes" : { "product.price" : { "propertyDataType" : "DOUBLE", "jcr:primaryType" : "endeca:property" }, "product.brand.name" : { "isRecordSearchEnabled" : true, "isAutogen" : true, "jcr:primaryType" : "endeca:dimension", "multiSelectType" : "OR" }, "product.review.count" : { "propertyDataType" : "INTEGER", "jcr:primaryType" : "endeca:property" }, "product.sku" : { "isRecordSearchEnabled" : true, "propertyDataType" : "ALPHA", "jcr:primaryType" : "endeca:property" }, "product.id" : { "isRecordFilterable" : true, "isRecordSearchEnabled" : true, "propertyDataType" : "ALPHA", "jcr:primaryType" : "endeca:property" }, "camera.color" : { "sourcePropertyNames" : [ "camera.Colour of product" ], "isAutogen" : true, "jcr:primaryType" : "endeca:dimension" }, "product.category" : { "sourcePropertyNames" : [ "product.category_id" ], "isRecordSearchEnabled" : true, "jcr:primaryType" : "endeca:dimension" }, "product.name" : { "isRecordSearchEnabled" : true, "propertyDataType" : "ALPHA", "jcr:primaryType" : "endeca:property" }, "product.features" : { "isAutogen" : true, "jcr:primaryType" : "endeca:dimension", "multiSelectType" : "AND" }, "product.min_price" : { "derivedPropertySource" : "product.price", "derivedPropertyFunction" : "MIN", "jcr:primaryType" : "endeca:derivedProperty" }, "product.price_range" : { "sourcePropertyNames" : [ "product.price" ], "rangeComparisonType" : "FLOAT", "jcr:primaryType" : "endeca:dimension" }, "common.id" : { "isRecordFilterable" : true, "propertyDataType" : "ALPHA", "jcr:primaryType" : "endeca:property" }, ... }, "precedenceRules" : { }, "searchIndexConfig" : { "spellingDictMinNumWordOccurrences" : 4, "spellingDictMaxWordLength" : 16, "isWildcardEnabledInDimensionSearch" : true, "spellingDictMinWordLength" : 3 } } } }