Last active
September 18, 2020 13:07
-
-
Save p3t3r67x0/f0f5090120d77465af28fee2505c6784 to your computer and use it in GitHub Desktop.
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)"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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