|
@@ -0,0 +1,60 @@
|
|
|
+curl -H 'Content-Type: application/json' -u jybid:Top2023_JEB01i@31 -XPUT http://127.0.0.1:19908/project_portrait -d '{
|
|
|
+ "settings": {
|
|
|
+ "index": {
|
|
|
+ "analysis": {
|
|
|
+ "analyzer": {
|
|
|
+ "my_ngram": {
|
|
|
+ "tokenizer": "my_ngram"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "tokenizer": {
|
|
|
+ "my_ngram": {
|
|
|
+ "min_gram": "2",
|
|
|
+ "type": "nGram",
|
|
|
+ "max_gram": "2"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "number_of_shards": "9",
|
|
|
+ "number_of_replicas": "0"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "mappings": {
|
|
|
+ "dynamic":false,
|
|
|
+ "properties": {
|
|
|
+ "buyer": {
|
|
|
+ "type": "keyword",
|
|
|
+ "fields": {
|
|
|
+ "mbuyer": {
|
|
|
+ "analyzer": "my_ngram",
|
|
|
+ "type": "text"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "class": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "id": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "area": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "business_type": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "city": {
|
|
|
+ "type": "keyword"
|
|
|
+ },
|
|
|
+ "lasttime":{
|
|
|
+ "type": "long"
|
|
|
+ },
|
|
|
+ "project_count": {
|
|
|
+ "type": "integer"
|
|
|
+ },
|
|
|
+ "project_money": {
|
|
|
+ "type": "double"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}'
|