The
get-merged-config
task retrieves the merged index
configuration for an application. In other words, the output of this task is
the consolidated index configuration for all import owners.
This task is primarily used as a debugging tool to troubleshoot configuration and data issues in the MDEX-compatible output files produced by a CAS crawl.
In some ways, the
get-merged-config
task is logically similar to
get-config
task with the owner option
(-o
) set to
all
. However, there are several important differences
between the two tasks:
get-config
outputs configuration that is grouped in nodes by the owner name.get-merged-config
outputs the consolidated configuration with no distinction for ownership.get-config
does not remove copies of attributes from other owners. For example, if anATG
owner adds attribute A andsystem
owner updates attribute A,get-config
returns attribute A in the node for theATG
owner and also the node for thesystem
owner. Whereas,get-merged-config
merges the copies of the attribute and returns only one instance of attribute A which is from thesystem
owner.
The syntax for this task is:
index_config_cmd get-merged-config [-f FileName] [-t precedenceRules|attributes|searchIndexConfig]
Where:
-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.-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.
To get the merged index configuration for an application:
Example 4. Example of getting the merged index configuration for an application
C:\Endeca\apps\Discover\control>index_config_cmd.bat get-merged-config [08.17.12 11:48:05] INFO: Using site Discover at URL http://JSMITH-WIN7:8006/ ifcr with username admin { "indexConfig" : { "attributes" : { "product.price" : { "propertyDataType" : "DOUBLE", "jcr:primaryType" : "endeca:property" }, "product.brand.name" : { "isRecordSearchEnabled" : true, "isAutogen" : true, "jcr:primaryType" : "endeca:dimension", "multiSelectType" : "OR" }, "product.sku" : { "isRecordSearchEnabled" : true, "propertyDataType" : "ALPHA", "jcr:primaryType" : "endeca:property" }, "product.id" : { "isRecordFilterable" : true, "isRecordSearchEnabled" : true, "propertyDataType" : "ALPHA", "jcr:primaryType" : "endeca:property" }, "camera.megapixel_range" : { "sourcePropertyNames" : [ "camera.Megapixel" ], "rangeComparisonType" : "FLOAT", "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.code" : { "isRollupKey" : true, "isRecordSearchEnabled" : true, "jcr:primaryType" : "endeca:property", "propertyDataType" : "ALPHA" }, "product.price_range" : { "sourcePropertyNames" : [ "product.price" ], "rangeComparisonType" : "FLOAT", "jcr:primaryType" : "endeca:dimension" }, "product.max_price" : { "derivedPropertySource" : "product.price", "derivedPropertyFunction" : "MAX", "jcr:primaryType" : "endeca:derivedProperty" }, "product.long_desc" : { "isRecordSearchEnabled" : true, "propertyDataType" : "ALPHA", "jcr:primaryType" : "endeca:property" }, "product.short_desc" : { "isRecordSearchEnabled" : true, "propertyDataType" : "ALPHA", "jcr:primaryType" : "endeca:property" }, ... }, "precedenceRules" : { }, "searchIndexConfig" : { "spellingDictMinNumWordOccurrences" : 4, "spellingDictMaxWordLength" : 16, "isWildcardEnabledInDimensionSearch" : true, "spellingDictMinWordLength" : 3 } } }