oprd_project.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. curl -XPUT http://127.0.0.1:9800/oprd_projectset_v1 -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": "13",
  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. "projectscope": {
  216. "index": "not_analyzed",
  217. "type": "string"
  218. },
  219. "multipackage": {
  220. "type": "long"
  221. },
  222. "title": {
  223. "index": "not_analyzed",
  224. "type": "string"
  225. },
  226. "subscopeclass": {
  227. "index": "not_analyzed",
  228. "type": "string"
  229. },
  230. "comeintime": {
  231. "type": "long"
  232. },
  233. "contractcode": {
  234. "index": "not_analyzed",
  235. "type": "string"
  236. },
  237. "toptype": {
  238. "index": "not_analyzed",
  239. "type": "string"
  240. },
  241. "spidercode": {
  242. "index": "not_analyzed",
  243. "type": "string"
  244. },
  245. "subtype": {
  246. "index": "not_analyzed",
  247. "type": "string"
  248. },
  249. "infoformat": {
  250. "type": "long"
  251. },
  252. "href": {
  253. "index": "not_analyzed",
  254. "type": "string"
  255. },
  256. "pjVal": {
  257. "type": "long"
  258. },
  259. "budget": {
  260. "type": "long"
  261. },
  262. "area": {
  263. "index": "not_analyzed",
  264. "type": "string"
  265. },
  266. "bidamount": {
  267. "type": "long"
  268. },
  269. "projectname": {
  270. "index": "not_analyzed",
  271. "type": "string"
  272. },
  273. "buyertel": {
  274. "index": "not_analyzed",
  275. "type": "string"
  276. },
  277. "infoid": {
  278. "index": "not_analyzed",
  279. "type": "string"
  280. },
  281. "agency": {
  282. "index": "not_analyzed",
  283. "type": "string"
  284. },
  285. "compareStr": {
  286. "index": "not_analyzed",
  287. "type": "string"
  288. },
  289. "bidstatus": {
  290. "index": "not_analyzed",
  291. "type": "string"
  292. },
  293. "s_winner": {
  294. "index": "not_analyzed",
  295. "type": "string"
  296. },
  297. "resVal": {
  298. "type": "long"
  299. },
  300. "buyer": {
  301. "index": "not_analyzed",
  302. "type": "string"
  303. },
  304. "buyerclass": {
  305. "index": "not_analyzed",
  306. "type": "string"
  307. },
  308. "site": {
  309. "index": "not_analyzed",
  310. "type": "string"
  311. },
  312. "winner": {
  313. "index": "not_analyzed",
  314. "type": "string"
  315. },
  316. "winnertel": {
  317. "index": "not_analyzed",
  318. "type": "string"
  319. },
  320. "winnerperson": {
  321. "index": "not_analyzed",
  322. "type": "string"
  323. },
  324. "bidopentime": {
  325. "index": "not_analyzed",
  326. "type": "string"
  327. },
  328. "district": {
  329. "index": "not_analyzed",
  330. "type": "string"
  331. },
  332. "publishtime": {
  333. "type": "long"
  334. },
  335. "topscopeclass": {
  336. "index": "not_analyzed",
  337. "type": "string"
  338. },
  339. "buyerperson": {
  340. "index": "not_analyzed",
  341. "type": "string"
  342. },
  343. "project_startdate": {
  344. "type": "long"
  345. },
  346. "project_completedate": {
  347. "type": "long"
  348. }
  349. }
  350. },
  351. "bidtype": {
  352. "index": "not_analyzed",
  353. "type": "string"
  354. },
  355. "buyerclass": {
  356. "index": "not_analyzed",
  357. "type": "string"
  358. },
  359. "sourceinfoid": {
  360. "index": "not_analyzed",
  361. "type": "string"
  362. },
  363. "lasttime": {
  364. "type": "long"
  365. },
  366. "winner": {
  367. "index": "not_analyzed",
  368. "type": "string"
  369. },
  370. "winnertel": {
  371. "index": "not_analyzed",
  372. "type": "string"
  373. },
  374. "winnerperson": {
  375. "index": "not_analyzed",
  376. "type": "string"
  377. },
  378. "bidopentime": {
  379. "type": "long"
  380. },
  381. "district": {
  382. "index": "not_analyzed",
  383. "type": "string"
  384. },
  385. "extractpos": {
  386. "index": "not_analyzed",
  387. "type": "string"
  388. },
  389. "ids": {
  390. "index": "not_analyzed",
  391. "type": "string"
  392. },
  393. "project_rate": {
  394. "type": "double"
  395. },
  396. "topscopeclass": {
  397. "index": "not_analyzed",
  398. "type": "string"
  399. },
  400. "buyerperson": {
  401. "index": "not_analyzed",
  402. "type": "string"
  403. },
  404. "zbtime": {
  405. "type": "long"
  406. },
  407. "purchasing": {
  408. "type": "string",
  409. "analyzer": "my_ngram"
  410. },
  411. "review_experts": {
  412. "index": "not_analyzed",
  413. "type": "string"
  414. },
  415. "winnerorder": {
  416. "index": "not_analyzed",
  417. "type": "string"
  418. },
  419. "prate_flag": {
  420. "type": "integer"
  421. },
  422. "bidcycle": {
  423. "type": "integer"
  424. },
  425. "project_startdate": {
  426. "type": "long"
  427. },
  428. "project_scale": {
  429. "analyzer": "my_ngram",
  430. "type": "string"
  431. },
  432. "project_duration": {
  433. "type": "long"
  434. },
  435. "project_timeunit": {
  436. "index": "not_analyzed",
  437. "type": "string"
  438. },
  439. "payway": {
  440. "index": "not_analyzed",
  441. "type": "string"
  442. },
  443. "contract_guarantee": {
  444. "type": "boolean"
  445. },
  446. "bid_guarantee": {
  447. "type": "boolean"
  448. },
  449. "qualifies": {
  450. "analyzer": "my_ngram",
  451. "type": "string"
  452. },
  453. "tag_rule": {
  454. "analyzer": "douhao",
  455. "type": "string"
  456. },
  457. "isOperators": {
  458. "type": "boolean"
  459. },
  460. "entidlist": {
  461. "index": "not_analyzed",
  462. "type": "string"
  463. },
  464. "buyertagname": {
  465. "index": "not_analyzed",
  466. "type": "string"
  467. }
  468. }
  469. }
  470. }
  471. }'