123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- curl -H 'Content-Type: application/json' -u jybid:Top2023_JEB01i@31 -XPUT http://127.0.0.1:19908/detail_v1 -d '{
- "settings": {
- "index": {
- "analysis": {
- "analyzer": {
- "my_ngram_title": {
- "filter": [
- "lowercase"
- ],
- "tokenizer": "my_ngram_title"
- },
- "douhao": {
- "type": "pattern",
- "pattern": ","
- },
- "my_ngram": {
- "filter": [
- "lowercase"
- ],
- "tokenizer": "my_ngram"
- }
- },
- "tokenizer": {
- "my_ngram_title": {
- "token_chars": [
- "letter",
- "digit",
- "punctuation",
- "symbol"
- ],
- "min_gram": "1",
- "type": "nGram",
- "max_gram": "1"
- },
- "my_ngram": {
- "token_chars": [
- "letter",
- "digit",
- "punctuation",
- "symbol"
- ],
- "min_gram": "2",
- "type": "nGram",
- "max_gram": "2"
- }
- }
- },
- "number_of_shards": "9",
- "number_of_replicas": "0",
- "max_result_window": "20000"
- }
- },
- "mappings": {
- "dynamic":false,
- "properties": {
- "detail": {
- "analyzer": "my_ngram",
- "type": "text"
- },
- "contenthtml": {
- "analyzer": "my_ngram",
- "type": "text"
- },
- "id": {
- "type": "keyword"
- }
- }
- }
- }'
|