Hi,
After creating an FTS index programmatically for a specific scope, collection, and field as shown in the SearchIndex JSON below. CB creates the “default” index and does not honor scope, collection, or field mappings.
I am using the 7.0.0-3739 CB server with Java SDK. Btw, when creating manually through Web Console same JSON works.
// SearchIndex JSON
{
"name": "fts_TestSheet_sheetStore_v1",
"sourceName": "TestDb",
"type": "fulltext-index",
"params": {
"doc_config": {
"docid_prefix_delim": "",
"docid_regexp": "",
"mode": "scope.collection.type_field",
"type_field": "type"
},
"mapping": {
"default_analyzer": "standard",
"default_datetime_parser": "dateTimeOptional",
"default_field": "_all",
"default_mapping": {
"dynamic": false,
"enabled": false
},
"default_type": "",
"docvalues_dynamic": false,
"index_dynamic": false,
"store_dynamic": false,
"type_field": "_type",
"types": {
"TestSheet.sheetStore": {
"dynamic": false,
"enabled": true,
"properties": {
"t9": {
"dynamic": false,
"enabled": true,
"fields": [
{
"name": "t9",
"type": "text",
"index": true,
"include_in_all": true,
"docvalues": true,
"include_term_vectors": true
}
]
}
}
}
}
},
"store": {
"indexType": "scorch",
"segmentVersion": 15
}
},
"sourceParams": {},
"sourceType": "gocbcore",
"planParams": {
"maxPartitionsPerPIndex": 64,
"indexPartitions": 1,
"numReplicas": 0
}
}
Thanks,
Neome Web