Description
If a user creates a child mapping that doesn't contain any field mappings, and then creates the index, the child mapping does not show up in the UI if the user goes back to modify the index defintion. The JSON does contain the child mapping definitions as it is supposed to.
/curl -XPUT -H "Content-Type: application/json" \ |
http://localhost:8094/api/index/test-idx \ |
-d '{
|
"type": "fulltext-index", |
"name": "test-idx", |
"uuid": "498d338b4ca7d496", |
"sourceType": "couchbase", |
"sourceName": "travel-sample", |
"sourceUUID": "7103f7a5f808d3c367ef4efdf6a75819", |
"planParams": { |
"maxPartitionsPerPIndex": 32, |
"numReplicas": 0, |
"hierarchyRules": null, |
"nodePlanParams": null, |
"pindexWeights": null, |
"planFrozen": false |
},
|
"params": { |
"mapping": { |
"byte_array_converter": "json", |
"default_analyzer": "standard", |
"default_datetime_parser": "dateTimeOptional", |
"default_field": "_all", |
"default_mapping": { |
"display_order": "0", |
"dynamic": false, |
"enabled": true, |
"properties": { |
"geo": { |
"display_order": "0", |
"dynamic": false, |
"enabled": true |
}
|
}
|
},
|
"default_type": "_default", |
"index_dynamic": true, |
"store_dynamic": false, |
"type_field": "type" |
},
|
"store": { |
"kvStoreName": "forestdb" |
}
|
},
|
"sourceParams": { |
"clusterManagerBackoffFactor": 0, |
"clusterManagerSleepInitMS": 0, |
"clusterManagerSleepMaxMS": 2000, |
"dataManagerBackoffFactor": 0, |
"dataManagerSleepInitMS": 0, |
"dataManagerSleepMaxMS": 2000, |
"feedBufferAckThreshold": 0, |
"feedBufferSizeBytes": 0 |
}
|
}'
|