projectset.txt 11 KB

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