Skip to content

Instantly share code, notes, and snippets.

@mschoch
Created June 11, 2018 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mschoch/0a7fedde54bb043bc0520ef0215f4b31 to your computer and use it in GitHub Desktop.
Save mschoch/0a7fedde54bb043bc0520ef0215f4b31 to your computer and use it in GitHub Desktop.
curl -XPUT -H "Content-Type: application/json" \
http://127.0.0.1:8094/api/index/testshouldnwork -d \
'{
"type": "fulltext-index",
"name": "testshouldnwork",
"sourceType": "couchbase",
"sourceName": "travel-sample",
"planParams": {
"maxPartitionsPerPIndex": 171
},
"params": {
"doc_config": {
"mode": "type_field",
"type_field": "type"
},
"mapping": {
"default_analyzer": "standard",
"default_datetime_parser": "dateTimeOptional",
"default_field": "_all",
"default_mapping": {
"dynamic": true,
"enabled": true
},
"default_type": "_default",
"index_dynamic": true,
"store_dynamic": false
},
"store": {
"kvStoreName": "mossStore"
}
},
"sourceParams": {}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment