biddingmapping.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. curl -XPUT http://127.0.0.1:19800/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": "15",
  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. "isValidFile": {
  129. "type": "boolean"
  130. },
  131. "agency": {
  132. "index": "not_analyzed",
  133. "type": "string",
  134. "fields": {
  135. "magency": {
  136. "analyzer": "my_ngram",
  137. "type": "string"
  138. }
  139. }
  140. },
  141. "projectscope": {
  142. "analyzer": "my_ngram",
  143. "type": "string"
  144. },
  145. "projectcode": {
  146. "index": "not_analyzed",
  147. "type": "string"
  148. },
  149. "bidopentime": {
  150. "type": "long"
  151. },
  152. "supervisorrate": {
  153. "type": "double"
  154. },
  155. "buyertel": {
  156. "index": "not_analyzed",
  157. "type": "string"
  158. },
  159. "bidamount": {
  160. "type": "double"
  161. },
  162. "winner": {
  163. "index": "not_analyzed",
  164. "type": "string"
  165. },
  166. "buyer": {
  167. "index": "not_analyzed",
  168. "type": "string",
  169. "fields": {
  170. "mbuyer": {
  171. "analyzer": "my_ngram_title",
  172. "type": "string"
  173. }
  174. }
  175. },
  176. "budget": {
  177. "type": "double"
  178. },
  179. "projectname": {
  180. "index": "not_analyzed",
  181. "type": "string",
  182. "fields": {
  183. "pname": {
  184. "analyzer": "my_ngram_title",
  185. "type": "string"
  186. }
  187. }
  188. },
  189. "bidstatus": {
  190. "index": "not_analyzed",
  191. "type": "string"
  192. },
  193. "buyerclass": {
  194. "index": "not_analyzed",
  195. "type": "string"
  196. },
  197. "topscopeclass": {
  198. "index": "not_analyzed",
  199. "type": "string"
  200. },
  201. "s_subscopeclass": {
  202. "analyzer": "douhao",
  203. "type": "string"
  204. },
  205. "area": {
  206. "index": "not_analyzed",
  207. "type": "string"
  208. },
  209. "city": {
  210. "index": "not_analyzed",
  211. "type": "string"
  212. },
  213. "district": {
  214. "index": "not_analyzed",
  215. "type": "string"
  216. },
  217. "s_winner": {
  218. "analyzer": "douhao",
  219. "type": "string",
  220. "fields": {
  221. "mwinner": {
  222. "analyzer": "my_ngram_title",
  223. "type": "string"
  224. }
  225. }
  226. },
  227. "id": {
  228. "index": "not_analyzed",
  229. "type": "string"
  230. },
  231. "title": {
  232. "analyzer": "my_ngram_title",
  233. "type": "string",
  234. "fields": {
  235. "mtitle": {
  236. "index": "not_analyzed",
  237. "type": "string"
  238. }
  239. }
  240. },
  241. "detail": {
  242. "analyzer": "my_ngram",
  243. "type": "string"
  244. },
  245. "site": {
  246. "index": "not_analyzed",
  247. "type": "string"
  248. },
  249. "comeintime": {
  250. "type": "long"
  251. },
  252. "href": {
  253. "index": "not_analyzed",
  254. "type": "string"
  255. },
  256. "infoformat": {
  257. "type": "integer"
  258. },
  259. "publishtime": {
  260. "type": "long"
  261. },
  262. "spidercode": {
  263. "index": "not_analyzed",
  264. "type": "string"
  265. },
  266. "toptype": {
  267. "index": "not_analyzed",
  268. "type": "string"
  269. },
  270. "subtype": {
  271. "index": "not_analyzed",
  272. "type": "string"
  273. },
  274. "filetext": {
  275. "type": "string",
  276. "analyzer": "my_ngram"
  277. },
  278. "purchasing": {
  279. "type": "string",
  280. "analyzer": "my_ngram"
  281. },
  282. "purchasinglist": {
  283. "properties": {
  284. "itemname": {
  285. "index": "not_analyzed",
  286. "type": "string"
  287. },
  288. "model": {
  289. "analyzer": "my_ngram",
  290. "type": "string"
  291. },
  292. "unitname": {
  293. "index": "not_analyzed",
  294. "type": "string"
  295. },
  296. "number": {
  297. "type": "double"
  298. },
  299. "brandname": {
  300. "analyzer": "my_ngram",
  301. "type": "string"
  302. },
  303. "unitprice": {
  304. "type": "double"
  305. },
  306. "totalprice": {
  307. "type": "double"
  308. },
  309. "item": {
  310. "index": "not_analyzed",
  311. "type": "string"
  312. }
  313. }
  314. },
  315. "procurementlist": {
  316. "properties": {
  317. "projectname": {
  318. "analyzer": "my_ngram_title",
  319. "type": "string"
  320. },
  321. "buyer": {
  322. "analyzer": "my_ngram_title",
  323. "type": "string"
  324. },
  325. "item": {
  326. "analyzer": "my_ngram_title",
  327. "type": "string"
  328. },
  329. "projectscope": {
  330. "analyzer": "my_ngram",
  331. "type": "string"
  332. },
  333. "totalprice": {
  334. "type": "double"
  335. },
  336. "expurasingtime": {
  337. "type": "long"
  338. }
  339. }
  340. },
  341. "tagname": {
  342. "analyzer": "douhao",
  343. "type": "string"
  344. },
  345. "s_topscopeclass": {
  346. "analyzer": "douhao",
  347. "type": "string"
  348. },
  349. "channel": {
  350. "index": "not_analyzed",
  351. "type": "string"
  352. },
  353. "winnerorder": {
  354. "properties": {
  355. "sort": {
  356. "type": "integer"
  357. },
  358. "sortstr": {
  359. "index": "not_analyzed",
  360. "type": "string"
  361. },
  362. "entname": {
  363. "index": "not_analyzed",
  364. "type": "string"
  365. }
  366. }
  367. },
  368. "project_scale": {
  369. "analyzer": "my_ngram",
  370. "type": "string"
  371. },
  372. "project_duration": {
  373. "type": "long"
  374. },
  375. "project_timeunit": {
  376. "index": "not_analyzed",
  377. "type": "string"
  378. },
  379. "project_startdate": {
  380. "type": "long"
  381. },
  382. "project_completedate": {
  383. "type": "long"
  384. },
  385. "payway": {
  386. "index": "not_analyzed",
  387. "type": "string"
  388. },
  389. "contract_guarantee": {
  390. "type": "boolean"
  391. },
  392. "bid_guarantee": {
  393. "type": "boolean"
  394. },
  395. "qualifies": {
  396. "analyzer": "my_ngram",
  397. "type": "string"
  398. },
  399. "entidlist": {
  400. "index": "not_analyzed",
  401. "type": "string"
  402. },
  403. "funds": {
  404. "analyzer": "my_ngram",
  405. "type": "string"
  406. },
  407. "review_experts": {
  408. "index": "not_analyzed",
  409. "type": "string"
  410. },
  411. "bidmethod": {
  412. "index": "not_analyzed",
  413. "type": "string"
  414. },
  415. "bidendtime": {
  416. "type": "long"
  417. },
  418. "bidopenaddress": {
  419. "index": "not_analyzed",
  420. "type": "string"
  421. },
  422. "docamount": {
  423. "type": "double"
  424. },
  425. "agencyrate": {
  426. "type": "double"
  427. },
  428. "agencyfee": {
  429. "type": "double"
  430. },
  431. "getdocmethod": {
  432. "index": "not_analyzed",
  433. "type": "string"
  434. },
  435. "bidway": {
  436. "index": "not_analyzed",
  437. "type": "string"
  438. },
  439. "china_bidding": {
  440. "index": "not_analyzed",
  441. "type": "string"
  442. },
  443. "yuceendtime": {
  444. "type": "long"
  445. },
  446. "createtime": {
  447. "type": "long"
  448. },
  449. "purchasing_tag": {
  450. "analyzer": "douhao",
  451. "type": "string"
  452. },
  453. "multipackage": {
  454. "type": "integer"
  455. },
  456. "bid_field": {
  457. "analyzer": "douhao",
  458. "type": "string"
  459. },
  460. "bidstarttime": {
  461. "type": "long"
  462. },
  463. "docendtime": {
  464. "type": "long"
  465. },
  466. "docstarttime": {
  467. "type": "long"
  468. },
  469. "signendtime": {
  470. "type": "long"
  471. },
  472. "signstarttime": {
  473. "type": "long"
  474. },
  475. "issue_quota":{
  476. "type":"double"
  477. },
  478. "bidopen_shape":{
  479. "type":"string",
  480. "index": "not_analyzed"
  481. },
  482. "quote_mode":{
  483. "type":"string",
  484. "index": "not_analyzed"
  485. },
  486. "is_acquire_tender":{
  487. "type":"boolean"
  488. },
  489. "is_payment_deposit":{
  490. "type":"boolean"
  491. },
  492. "is_joint_bidding":{
  493. "type":"boolean"
  494. },
  495. "object_type":{
  496. "type":"string"
  497. }
  498. }
  499. }
  500. }
  501. }'