winnermapping.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. curl -XPUT http://127.0.0.1:9800/winner_enterprise -d '{
  2. "settings": {
  3. "index": {
  4. "analysis": {
  5. "analyzer": {
  6. "my_ngram": {
  7. "tokenizer": "my_ngram"
  8. }
  9. },
  10. "tokenizer": {
  11. "my_ngram": {
  12. "min_gram": "2",
  13. "type": "nGram",
  14. "max_gram": "2"
  15. }
  16. }
  17. },
  18. "number_of_shards": "6",
  19. "number_of_replicas": "0"
  20. }
  21. },
  22. "mappings": {
  23. "winner_enterprise": {
  24. "transform": {
  25. "lang": "groovy",
  26. "script": "ctx._source[\"id\"] = ctx._source[\"_id\"]"
  27. },
  28. "_id": {
  29. "path": "_id"
  30. },
  31. "_all": {
  32. "enabled": false
  33. },
  34. "properties": {
  35. "company_name":{
  36. "analyzer": "my_ngram",
  37. "type": "string"
  38. },
  39. "history_name": {
  40. "index": "not_analyzed",
  41. "type": "string"
  42. },
  43. "credit_no": {
  44. "index": "not_analyzed",
  45. "type": "string"
  46. },
  47. "area_code": {
  48. "index": "not_analyzed",
  49. "type": "string"
  50. },
  51. "province": {
  52. "index": "not_analyzed",
  53. "type": "string"
  54. },
  55. "city": {
  56. "index": "not_analyzed",
  57. "type": "string"
  58. },
  59. "district": {
  60. "index": "not_analyzed",
  61. "type": "string"
  62. },
  63. "company_type": {
  64. "index": "not_analyzed",
  65. "type": "string"
  66. },
  67. "legal_person": {
  68. "index": "not_analyzed",
  69. "type": "string"
  70. },
  71. "establish_date": {
  72. "type": "long"
  73. },
  74. "capital": {
  75. "type": "float"
  76. },
  77. "company_address": {
  78. "index": "not_analyzed",
  79. "type": "string"
  80. },
  81. "business_scope": {
  82. "index": "not_analyzed",
  83. "type": "string"
  84. },
  85. "wechat_accounts": {
  86. "index": "not_analyzed",
  87. "type": "string"
  88. },
  89. "website": {
  90. "index": "not_analyzed",
  91. "type": "string"
  92. },
  93. "partners": {
  94. "index": "not_analyzed",
  95. "type": "string"
  96. },
  97. "stock_type": {
  98. "index": "not_analyzed",
  99. "type": "string"
  100. },
  101. "stock_name": {
  102. "index": "not_analyzed",
  103. "type": "string"
  104. },
  105. "stock_capital": {
  106. "index": "not_analyzed",
  107. "type": "string"
  108. },
  109. "stock_realcapital": {
  110. "index": "not_analyzed",
  111. "type": "string"
  112. },
  113. "industry": {
  114. "index": "not_analyzed",
  115. "type": "string"
  116. },
  117. "contact": {
  118. "index": "not_analyzed",
  119. "type": "string"
  120. },
  121. "contact_person": {
  122. "index": "not_analyzed",
  123. "type": "string"
  124. },
  125. "contact_type": {
  126. "index": "not_analyzed",
  127. "type": "string"
  128. },
  129. "phone": {
  130. "index": "not_analyzed",
  131. "type": "string"
  132. },
  133. "topscopeclass": {
  134. "index": "not_analyzed",
  135. "type": "string"
  136. },
  137. "updatetime": {
  138. "type": "long"
  139. }
  140. }
  141. }
  142. }
  143. }'