Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
curl -u admin:password -XPUT http://127.0.0.1:8094/api/index/fulltext_idx -H 'cache-control: no-cache' -H 'content-type: application/json' -d "$(cat fulltext_idx.json)"
{
"type": "fulltext-index",
"name": "fulltext_idx",
"sourceType": "couchbase",
"sourceName": "leakz",
"planParams": {
"maxPartitionsPerPIndex": 171,
"indexPartitions": 6
},
"params": {
"doc_config": {
"docid_prefix_delim": "",
"docid_regexp": "",
"mode": "type_field",
"type_field": "type"
},
"mapping": {
"analysis": {
"analyzers": {
"analyzer1": {
"token_filters": [
"tokenfilter1"
],
"tokenizer": "tokenizer1",
"type": "custom"
}
},
"token_filters": {
"tokenfilter1": {
"max": 3,
"min": 3,
"type": "ngram"
}
},
"tokenizers": {
"tokenizer1": {
"regexp": ".*",
"type": "regexp"
}
}
},
"default_analyzer": "analyzer1",
"default_datetime_parser": "disabled",
"default_field": "_all",
"default_mapping": {
"dynamic": true,
"enabled": false
},
"default_type": "_default",
"docvalues_dynamic": true,
"index_dynamic": true,
"store_dynamic": true,
"type_field": "_type",
"types": {
"password": {
"default_analyzer": "analyzer1",
"dynamic": false,
"enabled": true,
"properties": {
"md5": {
"dynamic": false,
"enabled": true,
"fields": [
{
"docvalues": true,
"include_in_all": true,
"include_term_vectors": true,
"name": "md5",
"store": true,
"type": "text"
}
]
},
"password": {
"dynamic": false,
"enabled": true,
"fields": [
{
"docvalues": true,
"include_in_all": true,
"include_term_vectors": true,
"index": true,
"name": "password",
"store": true,
"type": "text"
}
]
},
"sha1": {
"dynamic": false,
"enabled": true,
"fields": [
{
"docvalues": true,
"include_in_all": true,
"include_term_vectors": true,
"name": "sha1",
"store": true,
"type": "text"
}
]
},
"sha224": {
"dynamic": false,
"enabled": true,
"fields": [
{
"docvalues": true,
"include_in_all": true,
"include_term_vectors": true,
"name": "sha224",
"store": true,
"type": "text"
}
]
},
"sha256": {
"dynamic": false,
"enabled": true,
"fields": [
{
"docvalues": true,
"include_in_all": true,
"include_term_vectors": true,
"name": "sha256",
"store": true,
"type": "text"
}
]
},
"sha384": {
"dynamic": false,
"enabled": true,
"fields": [
{
"docvalues": true,
"include_in_all": true,
"include_term_vectors": true,
"name": "sha384",
"store": true,
"type": "text"
}
]
},
"sha512": {
"dynamic": false,
"enabled": true,
"fields": [
{
"docvalues": true,
"include_in_all": true,
"include_term_vectors": true,
"name": "sha512",
"store": true,
"type": "text"
}
]
}
}
}
}
},
"store": {
"indexType": "scorch"
}
},
"sourceParams": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment