選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

mapping.json 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. {
  2. "settings": {
  3. "index": {
  4. "number_of_shards": 4,
  5. "number_of_replicas": 0,
  6. "refresh_interval" : "1000ms"
  7. },
  8. "similarity": {
  9. "scripted_sim": {
  10. "type": "scripted",
  11. "script": {
  12. "source": "double idf = Math.log(1+(field.docCount-term.docFreq+0.5)/(term.docFreq + 0.5))/Math.log(1+((field.docCount-0.5)/1.5)); return query.boost * idf * Math.min(doc.freq, 1);"
  13. }
  14. }
  15. }
  16. },
  17. "mappings": {
  18. "properties": {
  19. "lat_lon": {"type": "geo_point", "store":"true"}
  20. },
  21. "date_detection": "true",
  22. "dynamic_templates": [
  23. {
  24. "int": {
  25. "match": "*_int",
  26. "mapping": {
  27. "type": "integer",
  28. "store": "true"
  29. }
  30. }
  31. },
  32. {
  33. "ulong": {
  34. "match": "*_ulong",
  35. "mapping": {
  36. "type": "unsigned_long",
  37. "store": "true"
  38. }
  39. }
  40. },
  41. {
  42. "long": {
  43. "match": "*_long",
  44. "mapping": {
  45. "type": "long",
  46. "store": "true"
  47. }
  48. }
  49. },
  50. {
  51. "short": {
  52. "match": "*_short",
  53. "mapping": {
  54. "type": "short",
  55. "store": "true"
  56. }
  57. }
  58. },
  59. {
  60. "numeric": {
  61. "match": "*_flt",
  62. "mapping": {
  63. "type": "float",
  64. "store": true
  65. }
  66. }
  67. },
  68. {
  69. "tks": {
  70. "match": "*_tks",
  71. "mapping": {
  72. "type": "text",
  73. "similarity": "scripted_sim",
  74. "analyzer": "whitespace",
  75. "store": true
  76. }
  77. }
  78. },
  79. {
  80. "ltks":{
  81. "match": "*_ltks",
  82. "mapping": {
  83. "type": "text",
  84. "analyzer": "whitespace",
  85. "store": true
  86. }
  87. }
  88. },
  89. {
  90. "kwd": {
  91. "match_pattern": "regex",
  92. "match": "^(.*_(kwd|id|ids|uid|uids)|uid)$",
  93. "mapping": {
  94. "type": "keyword",
  95. "similarity": "boolean",
  96. "store": true
  97. }
  98. }
  99. },
  100. {
  101. "dt": {
  102. "match_pattern": "regex",
  103. "match": "^.*(_dt|_time|_at)$",
  104. "mapping": {
  105. "type": "date",
  106. "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||yyyy-MM-dd_HH:mm:ss",
  107. "store": true
  108. }
  109. }
  110. },
  111. {
  112. "nested": {
  113. "match": "*_nst",
  114. "mapping": {
  115. "type": "nested"
  116. }
  117. }
  118. },
  119. {
  120. "object": {
  121. "match": "*_obj",
  122. "mapping": {
  123. "type": "object",
  124. "dynamic": "true"
  125. }
  126. }
  127. },
  128. {
  129. "string": {
  130. "match": "*_with_weight",
  131. "mapping": {
  132. "type": "text",
  133. "index": "false",
  134. "store": true
  135. }
  136. }
  137. },
  138. {
  139. "string": {
  140. "match": "*_fea",
  141. "mapping": {
  142. "type": "rank_feature"
  143. }
  144. }
  145. },
  146. {
  147. "dense_vector": {
  148. "match": "*_512_vec",
  149. "mapping": {
  150. "type": "dense_vector",
  151. "index": true,
  152. "similarity": "cosine",
  153. "dims": 512
  154. }
  155. }
  156. },
  157. {
  158. "dense_vector": {
  159. "match": "*_768_vec",
  160. "mapping": {
  161. "type": "dense_vector",
  162. "index": true,
  163. "similarity": "cosine",
  164. "dims": 768
  165. }
  166. }
  167. },
  168. {
  169. "dense_vector": {
  170. "match": "*_1024_vec",
  171. "mapping": {
  172. "type": "dense_vector",
  173. "index": true,
  174. "similarity": "cosine",
  175. "dims": 1024
  176. }
  177. }
  178. },
  179. {
  180. "dense_vector": {
  181. "match": "*_1536_vec",
  182. "mapping": {
  183. "type": "dense_vector",
  184. "index": true,
  185. "similarity": "cosine",
  186. "dims": 1536
  187. }
  188. }
  189. },
  190. {
  191. "binary": {
  192. "match": "*_bin",
  193. "mapping": {
  194. "type": "binary"
  195. }
  196. }
  197. }
  198. ]
  199. }
  200. }