|
@@ -1,4 +1,4 @@
|
|
|
-curl -XPUT http://192.168.3.206:9800/bidding_v2 -d '{
|
|
|
+curl -XPUT http://127.0.0.1:19800/bidding_v1 -d '{
|
|
|
"settings": {
|
|
|
"index": {
|
|
|
"search": {
|
|
@@ -58,7 +58,7 @@ curl -XPUT http://192.168.3.206:9800/bidding_v2 -d '{
|
|
|
}
|
|
|
},
|
|
|
"number_of_shards": "15",
|
|
|
- "number_of_replicas": "0"
|
|
|
+ "number_of_replicas": "1"
|
|
|
}
|
|
|
},
|
|
|
"mappings": {
|
|
@@ -136,14 +136,8 @@ curl -XPUT http://192.168.3.206:9800/bidding_v2 -d '{
|
|
|
}
|
|
|
},
|
|
|
"projectscope": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string",
|
|
|
- "fields": {
|
|
|
- "pscope": {
|
|
|
- "analyzer": "my_ngram",
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- }
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "string"
|
|
|
},
|
|
|
"projectcode": {
|
|
|
"index": "not_analyzed",
|
|
@@ -274,42 +268,6 @@ curl -XPUT http://192.168.3.206:9800/bidding_v2 -d '{
|
|
|
"index": "not_analyzed",
|
|
|
"type": "string"
|
|
|
},
|
|
|
- "projectinfo": {
|
|
|
- "properties": {
|
|
|
- "approvecode": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "approvecontent": {
|
|
|
- "analyzer": "my_ngram",
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "approvestatus": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "approvetime": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "approvedept": {
|
|
|
- "analyzer": "my_ngram",
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "approvenumber": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "projecttype": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "approvecity": {
|
|
|
- "index": "not_analyzed",
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
"filetext": {
|
|
|
"type": "string",
|
|
|
"analyzer": "my_ngram"
|