project.json 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. curl -XPUT http://127.0.0.1:9800/project_v1 -d '{
  2. "settings": {
  3. "index": {
  4. "analysis": {
  5. "analyzer": {
  6. "douhao": {
  7. "type": "pattern",
  8. "pattern": ","
  9. },
  10. "my_ngram": {
  11. "filter": [
  12. "lowercase"
  13. ],
  14. "tokenizer": "my_ngram"
  15. }
  16. },
  17. "tokenizer": {
  18. "my_ngram": {
  19. "token_chars": [
  20. "letter",
  21. "digit"
  22. ],
  23. "min_gram": "2",
  24. "type": "nGram",
  25. "max_gram": "2"
  26. }
  27. }
  28. },
  29. "number_of_shards": "8",
  30. "number_of_replicas": "0"
  31. }
  32. },
  33. "mappings": {
  34. "projectset": {
  35. "transform": {
  36. "lang": "groovy",
  37. "script": "ctx._source[\"id\"] = ctx._source[\"_id\"]"
  38. },
  39. "_id": {
  40. "path": "_id"
  41. },
  42. "_all": {
  43. "enabled": false
  44. },
  45. "properties": {
  46. "firsttime": {
  47. "type": "long"
  48. },
  49. "city": {
  50. "index": "not_analyzed",
  51. "type": "string"
  52. },
  53. "projectcode": {
  54. "index": "not_analyzed",
  55. "type": "string"
  56. },
  57. "jgtime": {
  58. "type": "long"
  59. },
  60. "projectscope": {
  61. "index": "not_analyzed",
  62. "type": "string"
  63. },
  64. "multipackage": {
  65. "type": "integer"
  66. },
  67. "subscopeclass": {
  68. "index": "not_analyzed",
  69. "type": "string"
  70. },
  71. "sortprice": {
  72. "type": "double"
  73. },
  74. "s_projectname": {
  75. "index": "not_analyzed",
  76. "type": "string"
  77. },
  78. "id": {
  79. "index": "not_analyzed",
  80. "type": "string"
  81. },
  82. "budget": {
  83. "type": "double"
  84. },
  85. "s_subscopeclass": {
  86. "type": "string"
  87. },
  88. "area": {
  89. "index": "not_analyzed",
  90. "type": "string"
  91. },
  92. "mpc": {
  93. "type": "string"
  94. },
  95. "bidamount": {
  96. "type": "double"
  97. },
  98. "createtime": {
  99. "type": "long"
  100. },
  101. "projectname": {
  102. "index": "not_analyzed",
  103. "type": "string",
  104. "fields": {
  105. "pname": {
  106. "analyzer": "my_ngram",
  107. "type": "string"
  108. }
  109. }
  110. },
  111. "buyertel": {
  112. "type": "string"
  113. },
  114. "agency": {
  115. "index": "not_analyzed",
  116. "type": "string"
  117. },
  118. "bidstatus": {
  119. "index": "not_analyzed",
  120. "type": "string"
  121. },
  122. "s_winner": {
  123. "analyzer": "douhao",
  124. "type": "string"
  125. },
  126. "winnerorder": {
  127. "properties": {
  128. "sortstr": {
  129. "type": "string"
  130. },
  131. "entname": {
  132. "type": "string"
  133. },
  134. "price": {
  135. "type": "long"
  136. },
  137. "sort": {
  138. "type": "long"
  139. },
  140. "type": {
  141. "type": "long"
  142. }
  143. }
  144. },
  145. "mpn": {
  146. "type": "string"
  147. },
  148. "pici": {
  149. "type": "long"
  150. },
  151. "list": {
  152. "properties": {
  153. "city": {
  154. "type": "string"
  155. },
  156. "district": {
  157. "type": "string"
  158. },
  159. "site": {
  160. "type": "string"
  161. },
  162. "spidercode": {
  163. "type": "string"
  164. },
  165. "multipackage": {
  166. "type": "long"
  167. },
  168. "projectcode": {
  169. "type": "string"
  170. },
  171. "contractcode": {
  172. "type": "string"
  173. },
  174. "projectscope": {
  175. "type": "string"
  176. },
  177. "title": {
  178. "type": "string"
  179. },
  180. "comeintime": {
  181. "type": "long"
  182. },
  183. "toptype": {
  184. "type": "string"
  185. },
  186. "subtype": {
  187. "type": "string"
  188. },
  189. "infoformat": {
  190. "type": "long"
  191. },
  192. "href": {
  193. "type": "string"
  194. },
  195. "pjVal": {
  196. "type": "long"
  197. },
  198. "budget": {
  199. "type": "long"
  200. },
  201. "area": {
  202. "type": "string"
  203. },
  204. "bidamount": {
  205. "type": "long"
  206. },
  207. "projectname": {
  208. "type": "string"
  209. },
  210. "buyertel": {
  211. "type": "string"
  212. },
  213. "infoid": {
  214. "type": "string"
  215. },
  216. "agency": {
  217. "type": "string"
  218. },
  219. "compareStr": {
  220. "type": "string"
  221. },
  222. "bidstatus": {
  223. "type": "string"
  224. },
  225. "resVal": {
  226. "type": "long"
  227. },
  228. "buyer": {
  229. "type": "string"
  230. },
  231. "buyerclass": {
  232. "type": "string"
  233. },
  234. "winner": {
  235. "type": "string"
  236. },
  237. "s_winner": {
  238. "type": "string"
  239. },
  240. "bidopentime": {
  241. "type": "string"
  242. },
  243. "publishtime": {
  244. "type": "long"
  245. },
  246. "topscopeclass": {
  247. "type": "string"
  248. },
  249. "subscopeclass": {
  250. "type": "string"
  251. },
  252. "buyerperson": {
  253. "type": "string"
  254. }
  255. }
  256. },
  257. "buyer": {
  258. "index": "not_analyzed",
  259. "type": "string"
  260. },
  261. "bidtype": {
  262. "index": "not_analyzed",
  263. "type": "string"
  264. },
  265. "buyerclass": {
  266. "type": "string"
  267. },
  268. "sourceinfoid": {
  269. "index": "not_analyzed",
  270. "type": "string"
  271. },
  272. "sourceinfourl": {
  273. "index": "not_analyzed",
  274. "type": "string"
  275. },
  276. "lasttime": {
  277. "type": "long"
  278. },
  279. "winner": {
  280. "index": "not_analyzed",
  281. "type": "string"
  282. },
  283. "bidopentime": {
  284. "type": "long"
  285. },
  286. "district": {
  287. "type": "string"
  288. },
  289. "extractpos": {
  290. "index": "not_analyzed",
  291. "type": "string"
  292. },
  293. "ids": {
  294. "type": "string"
  295. },
  296. "topscopeclass": {
  297. "index": "not_analyzed",
  298. "type": "string"
  299. },
  300. "buyerperson": {
  301. "type": "string"
  302. },
  303. "zbtime": {
  304. "type": "long"
  305. },
  306. "contractcode": {
  307. "index": "not_analyzed",
  308. "type": "string"
  309. },
  310. "exception": {
  311. "type": "integer"
  312. },
  313. "results1": {
  314. "properties": {
  315. "code": {
  316. "type": "string"
  317. },
  318. "level": {
  319. "type": "string"
  320. },
  321. "column": {
  322. "type": "string"
  323. },
  324. "pici": {
  325. "type": "long"
  326. },
  327. "describtion": {
  328. "type": "string"
  329. }
  330. }
  331. },
  332. "flag_buyerclass": {
  333. "type": "long"
  334. },
  335. "flag_budget": {
  336. "type": "long"
  337. },
  338. "budgettag": {
  339. "type": "integer"
  340. },
  341. "project_rate": {
  342. "type": "double"
  343. },
  344. "projecthref": {
  345. "type": "string"
  346. },
  347. "flag": {
  348. "type": "string"
  349. },
  350. "flag_agency": {
  351. "type": "long"
  352. },
  353. "flag_firsttime": {
  354. "type": "long"
  355. },
  356. "b": {
  357. "type": "string"
  358. },
  359. "listtag": {
  360. "type": "long"
  361. },
  362. "bidamounttag": {
  363. "type": "integer"
  364. },
  365. "package1": {
  366. "properties": {
  367. "bidamount": {
  368. "type": "long"
  369. },
  370. "winner": {
  371. "index": "not_analyzed",
  372. "type": "string"
  373. }
  374. }
  375. },
  376. "flag_winner": {
  377. "type": "long"
  378. },
  379. "flag_buyer": {
  380. "type": "long"
  381. },
  382. "flag_bidamount": {
  383. "type": "long"
  384. },
  385. "clean_time": {
  386. "type": "long"
  387. }
  388. }
  389. }
  390. }
  391. }'