projectset.txt 11 KB

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