biddingmapping.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. curl -XPUT http://127.0.0.1:9800/bidding_v2 -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. "punctuation",
  52. "symbol"
  53. ],
  54. "min_gram": "2",
  55. "type": "nGram",
  56. "max_gram": "2"
  57. }
  58. }
  59. },
  60. "number_of_shards": "13",
  61. "number_of_replicas": "1"
  62. }
  63. },
  64. "mappings": {
  65. "bidding": {
  66. "transform": {
  67. "lang": "groovy",
  68. "script": "ctx._source[\"id\"] = ctx._source[\"_id\"]"
  69. },
  70. "_id": {
  71. "path": "_id"
  72. },
  73. "_all": {
  74. "enabled": false
  75. },
  76. "properties": {
  77. "buyerzipcode": {
  78. "index": "not_analyzed",
  79. "type": "string"
  80. },
  81. "winnertel": {
  82. "index": "not_analyzed",
  83. "type": "string"
  84. },
  85. "winnerperson": {
  86. "index": "not_analyzed",
  87. "type": "string"
  88. },
  89. "contractcode": {
  90. "index": "not_analyzed",
  91. "type": "string"
  92. },
  93. "winneraddr": {
  94. "index": "not_analyzed",
  95. "type": "string"
  96. },
  97. "agencyaddr": {
  98. "index": "not_analyzed",
  99. "type": "string"
  100. },
  101. "buyeraddr": {
  102. "index": "not_analyzed",
  103. "type": "string"
  104. },
  105. "signaturedate": {
  106. "type": "long"
  107. },
  108. "projectperiod": {
  109. "index": "not_analyzed",
  110. "type": "string"
  111. },
  112. "projectaddr": {
  113. "index": "not_analyzed",
  114. "type": "string"
  115. },
  116. "agencytel": {
  117. "index": "not_analyzed",
  118. "type": "string"
  119. },
  120. "agencyperson": {
  121. "index": "not_analyzed",
  122. "type": "string"
  123. },
  124. "buyerperson": {
  125. "index": "not_analyzed",
  126. "type": "string"
  127. },
  128. "agency": {
  129. "index": "not_analyzed",
  130. "type": "string",
  131. "fields": {
  132. "magency": {
  133. "analyzer": "my_ngram",
  134. "type": "string"
  135. }
  136. }
  137. },
  138. "projectscope": {
  139. "index": "not_analyzed",
  140. "type": "string",
  141. "fields": {
  142. "pscope": {
  143. "analyzer": "my_ngram",
  144. "type": "string"
  145. }
  146. }
  147. },
  148. "projectcode": {
  149. "index": "not_analyzed",
  150. "type": "string"
  151. },
  152. "bidopentime": {
  153. "type": "long"
  154. },
  155. "supervisorrate": {
  156. "type": "double"
  157. },
  158. "buyertel": {
  159. "index": "not_analyzed",
  160. "type": "string"
  161. },
  162. "bidamount": {
  163. "type": "double"
  164. },
  165. "winner": {
  166. "index": "not_analyzed",
  167. "type": "string"
  168. },
  169. "buyer": {
  170. "index": "not_analyzed",
  171. "type": "string",
  172. "fields": {
  173. "mbuyer": {
  174. "analyzer": "my_ngram_title",
  175. "type": "string"
  176. }
  177. }
  178. },
  179. "budget": {
  180. "type": "double"
  181. },
  182. "projectname": {
  183. "index": "not_analyzed",
  184. "type": "string",
  185. "fields": {
  186. "pname": {
  187. "analyzer": "my_ngram_title",
  188. "type": "string"
  189. }
  190. }
  191. },
  192. "bidstatus": {
  193. "index": "not_analyzed",
  194. "type": "string"
  195. },
  196. "buyerclass": {
  197. "index": "not_analyzed",
  198. "type": "string"
  199. },
  200. "topscopeclass": {
  201. "index": "not_analyzed",
  202. "type": "string"
  203. },
  204. "s_subscopeclass": {
  205. "analyzer": "douhao",
  206. "type": "string"
  207. },
  208. "area": {
  209. "index": "not_analyzed",
  210. "type": "string"
  211. },
  212. "city": {
  213. "index": "not_analyzed",
  214. "type": "string"
  215. },
  216. "district": {
  217. "index": "not_analyzed",
  218. "type": "string"
  219. },
  220. "s_winner": {
  221. "analyzer": "douhao",
  222. "type": "string",
  223. "fields": {
  224. "mwinner": {
  225. "analyzer": "my_ngram_title",
  226. "type": "string"
  227. }
  228. }
  229. },
  230. "id": {
  231. "index": "not_analyzed",
  232. "type": "string"
  233. },
  234. "title": {
  235. "analyzer": "my_ngram_title",
  236. "type": "string",
  237. "fields": {
  238. "mtitle": {
  239. "index": "not_analyzed",
  240. "type": "string"
  241. }
  242. }
  243. },
  244. "detail": {
  245. "analyzer": "my_ngram",
  246. "type": "string"
  247. },
  248. "site": {
  249. "index": "not_analyzed",
  250. "type": "string"
  251. },
  252. "comeintime": {
  253. "type": "long"
  254. },
  255. "href": {
  256. "index": "not_analyzed",
  257. "type": "string"
  258. },
  259. "infoformat": {
  260. "type": "integer"
  261. },
  262. "publishtime": {
  263. "type": "long"
  264. },
  265. "spidercode": {
  266. "index": "not_analyzed",
  267. "type": "string"
  268. },
  269. "toptype": {
  270. "index": "not_analyzed",
  271. "type": "string"
  272. },
  273. "subtype": {
  274. "index": "not_analyzed",
  275. "type": "string"
  276. },
  277. "projectinfo": {
  278. "properties": {
  279. "approvecode": {
  280. "index": "not_analyzed",
  281. "type": "string"
  282. },
  283. "approvecontent": {
  284. "analyzer": "my_ngram",
  285. "type": "string"
  286. },
  287. "approvestatus": {
  288. "index": "not_analyzed",
  289. "type": "string"
  290. },
  291. "approvetime": {
  292. "index": "not_analyzed",
  293. "type": "string"
  294. },
  295. "approvedept": {
  296. "analyzer": "my_ngram",
  297. "type": "string"
  298. },
  299. "approvenumber": {
  300. "index": "not_analyzed",
  301. "type": "string"
  302. },
  303. "projecttype": {
  304. "index": "not_analyzed",
  305. "type": "string"
  306. },
  307. "approvecity": {
  308. "index": "not_analyzed",
  309. "type": "string"
  310. }
  311. }
  312. },
  313. "filetext": {
  314. "type": "string",
  315. "analyzer": "my_ngram"
  316. },
  317. "purchasing": {
  318. "type": "string",
  319. "analyzer": "my_ngram"
  320. },
  321. "purchasinglist": {
  322. "properties": {
  323. "itemname": {
  324. "index": "not_analyzed",
  325. "type": "string"
  326. },
  327. "model": {
  328. "analyzer": "my_ngram",
  329. "type": "string"
  330. },
  331. "unitname": {
  332. "index": "not_analyzed",
  333. "type": "string"
  334. },
  335. "number": {
  336. "type": "double"
  337. },
  338. "brandname": {
  339. "analyzer": "my_ngram",
  340. "type": "string"
  341. },
  342. "unitprice": {
  343. "type": "double"
  344. },
  345. "totalprice": {
  346. "type": "double"
  347. },
  348. "projectname": {
  349. "index": "not_analyzed",
  350. "type": "string"
  351. },
  352. "buyer": {
  353. "index": "not_analyzed",
  354. "type": "string"
  355. },
  356. "item": {
  357. "index": "not_analyzed",
  358. "type": "string"
  359. },
  360. "projectscope": {
  361. "index": "not_analyzed",
  362. "type": "string"
  363. },
  364. "expurasingtime": {
  365. "index": "not_analyzed",
  366. "type": "string"
  367. },
  368. "reserved_amount": {
  369. "index": "not_analyzed",
  370. "type": "string"
  371. }
  372. }
  373. },
  374. "tagname": {
  375. "analyzer": "douhao",
  376. "type": "string"
  377. },
  378. "s_topscopeclass": {
  379. "analyzer": "douhao",
  380. "type": "string"
  381. },
  382. "channel": {
  383. "index": "not_analyzed",
  384. "type": "string"
  385. },
  386. "winnerorder": {
  387. "properties": {
  388. "sort": {
  389. "type": "integer"
  390. },
  391. "sortstr": {
  392. "index": "not_analyzed",
  393. "type": "string"
  394. },
  395. "entname": {
  396. "index": "not_analyzed",
  397. "type": "string"
  398. }
  399. }
  400. },
  401. "project_scale": {
  402. "analyzer": "my_ngram",
  403. "type": "string"
  404. },
  405. "project_duration": {
  406. "type": "long"
  407. },
  408. "project_timeunit": {
  409. "index": "not_analyzed",
  410. "type": "string"
  411. },
  412. "project_startdate": {
  413. "type": "long"
  414. },
  415. "project_completedate": {
  416. "type": "long"
  417. },
  418. "payway": {
  419. "index": "not_analyzed",
  420. "type": "string"
  421. },
  422. "contract_guarantee": {
  423. "type": "boolean"
  424. },
  425. "bid_guarantee": {
  426. "type": "boolean"
  427. },
  428. "qualifies": {
  429. "analyzer": "my_ngram",
  430. "type": "string"
  431. },
  432. "entidlist": {
  433. "index": "not_analyzed",
  434. "type": "string"
  435. },
  436. "funds": {
  437. "analyzer": "my_ngram",
  438. "type": "string"
  439. },
  440. "review_experts": {
  441. "index": "not_analyzed",
  442. "type": "string"
  443. },
  444. "bidmethod": {
  445. "index": "not_analyzed",
  446. "type": "string"
  447. },
  448. "bidendtime": {
  449. "type": "long"
  450. },
  451. "bidopenaddress": {
  452. "index": "not_analyzed",
  453. "type": "string"
  454. },
  455. "docamount": {
  456. "type": "double"
  457. },
  458. "agencyrate": {
  459. "type": "double"
  460. },
  461. "agencyfee": {
  462. "type": "double"
  463. },
  464. "getdocmethod": {
  465. "index": "not_analyzed",
  466. "type": "string"
  467. },
  468. "bidway": {
  469. "index": "not_analyzed",
  470. "type": "string"
  471. },
  472. "china_bidding": {
  473. "index": "not_analyzed",
  474. "type": "string"
  475. },
  476. "yuceendtime": {
  477. "type": "long"
  478. },
  479. "createtime": {
  480. "type": "long"
  481. },
  482. "purchasing_tag": {
  483. "analyzer": "douhao",
  484. "type": "string"
  485. },
  486. "multipackage": {
  487. "type": "integer"
  488. }
  489. }
  490. }
  491. }
  492. }'