Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
5.0.0
-
Untriaged
-
Unknown
Description
Review this error message to see if this matches what you want:
{"message":"Forbidden. User needs one of the following permissions","permissions":["cluster.bucket[travel-sample].fts!write"]}
|
To reproduce, you'll need the travel-sample bucket installed and a user named marty with fts.searcher role assigned (only).
curl -XPUT -H "Content-Type: application/json" http://marty:password@localhost:8094/api/index/hotels -d '{
|
"type": "fulltext-index",
|
"name": "hotels",
|
"sourceType": "couchbase",
|
"sourceName": "travel-sample",
|
"planParams": {
|
"maxPartitionsPerPIndex": 171,
|
"numReplicas": 0,
|
"hierarchyRules": null,
|
"nodePlanParams": null,
|
"pindexWeights": null,
|
"planFrozen": false
|
},
|
"params": {
|
"doc_config": {
|
"mode": "type_field",
|
"type_field": "type"
|
},
|
"mapping": {
|
"default_analyzer": "standard",
|
"default_datetime_parser": "dateTimeOptional",
|
"default_field": "_all",
|
"default_mapping": {
|
"display_order": "1",
|
"dynamic": true,
|
"enabled": false
|
},
|
"default_type": "_default",
|
"index_dynamic": true,
|
"store_dynamic": true,
|
"type_field": "type",
|
"types": {
|
"hotel": {
|
"display_order": "0",
|
"dynamic": true,
|
"enabled": true
|
}
|
}
|
},
|
"store": {
|
"kvStoreName": "mossStore"
|
}
|
},
|
"sourceParams": {
|
"clusterManagerBackoffFactor": 0,
|
"clusterManagerSleepInitMS": 0,
|
"clusterManagerSleepMaxMS": 2000,
|
"dataManagerBackoffFactor": 0,
|
"dataManagerSleepInitMS": 0,
|
"dataManagerSleepMaxMS": 2000,
|
"feedBufferAckThreshold": 0,
|
"feedBufferSizeBytes": 0
|
}
|
}'
|