{"id":5674,"date":"2022-07-07T15:15:59","date_gmt":"2022-07-07T06:15:59","guid":{"rendered":"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=5674"},"modified":"2022-08-17T16:53:01","modified_gmt":"2022-08-17T07:53:01","slug":"elasticsearch-data-type","status":"publish","type":"post","link":"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=5674","title":{"rendered":"Elasticsearch Data Type"},"content":{"rendered":"<h1>Elasticsearch Data Type<\/h1>\n<h2>\ud0c0\uc785\uc885\ub958<\/h2>\n<table>\n<thead>\n<tr>\n<th>\ub370\uc774\ud0c0 \ud0c0\uc785<\/th>\n<th>\uc6a9\ub3c4<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>text<\/td>\n<td>\uc804\ubb38 \ud14d\uc2a4\ud2b8 (full text) \uac80\uc0c9\uc6a9. analyzer \ub97c \uc801\uc6a9\ud560 \uc218 \uc788\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>keyword<\/td>\n<td>\ud615\ud0dc\uc18c \ubd84\uc11d\uc744 \ud558\uc9c0 \uc54a\ub294\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>byte, short, integer, long<\/td>\n<td>\ubc14\uc774\ud2b8 \ub610\ub294 \uc22b\uc790.<\/td>\n<\/tr>\n<tr>\n<td>float, double<\/td>\n<td>\ubd80\ub3d9 \uc18c\uc218\uc810.<\/td>\n<\/tr>\n<tr>\n<td>date<\/td>\n<td>\ub0a0\uc9dc. \ubc00\ub9ac\uc138\ucee8\ub4dc\uae4c\uc9c0 \ud3ec\ud568\ud55c\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>boolean<\/td>\n<td>\ubd88\ub9b0.<\/td>\n<\/tr>\n<tr>\n<td>list<\/td>\n<td>\ub9ac\uc2a4\ud2b8. \ub9ac\uc2a4\ud2b8 \uac01 \ub370\uc774\ud0c0\ub294 \ud0c0\uc785\uc774 \ub3d9\uc77c\ud574\uc57c \ud55c\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>nested<\/td>\n<td>\uc911\ucca9\ub41c \ub370\uc774\ud0c0 \ud0c0\uc785.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>money<\/h2>\n<pre><code class=\"language-json\">{\n  &quot;mappings&quot;: {\n    &quot;properties&quot;: {\n      &quot;number_of_bytes&quot;: {\n        &quot;type&quot;: &quot;integer&quot;\n      },\n      &quot;time_in_seconds&quot;: {\n        &quot;type&quot;: &quot;float&quot;\n      },\n      &quot;price&quot;: {\n        &quot;type&quot;: &quot;scaled_float&quot;,\n        &quot;scaling_factor&quot;: 100\n      }\n    }\n  }\n}<\/code><\/pre>\n<h2>\uc0d8\ud50c<\/h2>\n<p><code>date_optional_time<\/code> \uc774 \uaf64 \uc88b\ub2e4.<br \/>\n<code>yyyy-MM-dd&#039;T&#039;HH:mm:ss.SSS<\/code> \uc774 \ub188\uc740 \ubc00\ub9ac\uc138\ucee8\ub4dc \uc790\ub9bf\uc218\uae4c\uc9c0 \uc608\ubbfc\ud55c\ub370,<br \/>\n<code>date_optional_time<\/code> \uc774 \ub188\uc740 \ubc00\ub9ac\uc138\ucee8\ub4dc\uac00 \uc788\ub358\uc5c6\ub358 \ub2e4 \ub4e4\uc5b4\uac04\ub2e4.<\/p>\n<pre><code class=\"language-json\">{\n  &quot;settings&quot;: {\n    &quot;number_of_shards&quot;: 1,\n    &quot;max_ngram_diff&quot;: 20,\n    &quot;number_of_replicas&quot;: 0,\n    &quot;analysis&quot;: {\n      &quot;tokenizer&quot;: {\n        &quot;my_ngram_tokenizer&quot;: {\n          &quot;type&quot;: &quot;ngram&quot;,\n          &quot;min_gram&quot;: 1,\n          &quot;max_gram&quot;: 20,\n          &quot;token_chars&quot;: [\n            &quot;letter&quot;,\n            &quot;digit&quot;,\n            &quot;punctuation&quot;\n          ]\n        }\n      },\n      &quot;analyzer&quot;: {\n        &quot;my_ngram_analyzer&quot;: {\n          &quot;type&quot;: &quot;custom&quot;,\n          &quot;tokenizer&quot;: &quot;my_ngram_tokenizer&quot;,\n          &quot;filter&quot;: [\n            &quot;lowercase&quot;\n          ]\n        }\n      }\n    }\n  },\n  &quot;mappings&quot;: {\n    &quot;properties&quot;: {\n      &quot;itemId&quot;: {\n        &quot;type&quot;: &quot;integer&quot;\n      },\n      &quot;category&quot;: {\n        &quot;type&quot;: &quot;keyword&quot;\n      },\n      &quot;itemName&quot;: {\n        &quot;type&quot;: &quot;text&quot;,\n        &quot;analyzer&quot;: &quot;whitespace&quot;,\n        &quot;search_analyzer&quot;: &quot;my_ngram_analyzer&quot;\n      },\n      &quot;sellCash&quot;: {\n        &quot;type&quot;: &quot;scaled_float&quot;,\n        &quot;scaling_factor&quot;: 100\n      },\n      &quot;limitNumber&quot;: {\n        &quot;type&quot;: &quot;integer&quot;\n      },\n      &quot;regDate&quot;: {\n        &quot;type&quot;: &quot;date&quot;,\n        &quot;format&quot;:&quot;yyyy-MM-dd&#039;T&#039;HH:mm:ss.SSS||date_optional_time&quot;\n      },\n      &quot;productBrandInfo&quot;: {\n        &quot;type&quot;: &quot;nested&quot;,\n        &quot;properties&quot;: {\n          &quot;brandName&quot; : {\n            &quot;type&quot;: &quot;text&quot;\n          },\n          &quot;brandLogo&quot;: {\n            &quot;type&quot;: &quot;keyword&quot;\n          }\n        }\n      }\n    }\n  }\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Elasticsearch Data Type \ud0c0\uc785\uc885\ub958 \ub370\uc774\ud0c0 \ud0c0\uc785 \uc6a9\ub3c4 text \uc804\ubb38 \ud14d\uc2a4\ud2b8 (full text) \uac80\uc0c9\uc6a9. analyzer \ub97c \uc801\uc6a9\ud560 \uc218 \uc788\ub2e4. keyword \ud615\ud0dc\uc18c \ubd84\uc11d\uc744 \ud558\uc9c0 \uc54a\ub294\ub2e4. byte, short, integer, long \ubc14\uc774\ud2b8 \ub610\ub294 \uc22b\uc790. float, double \ubd80\ub3d9 \uc18c\uc218\uc810. date \ub0a0\uc9dc. \ubc00\ub9ac\uc138\ucee8\ub4dc\uae4c\uc9c0 \ud3ec\ud568\ud55c\ub2e4. boolean \ubd88\ub9b0. list \ub9ac\uc2a4\ud2b8. \ub9ac\uc2a4\ud2b8 \uac01 \ub370\uc774\ud0c0\ub294 \ud0c0\uc785\uc774 \ub3d9\uc77c\ud574\uc57c \ud55c\ub2e4. nested \uc911\ucca9\ub41c \ub370\uc774\ud0c0 \ud0c0\uc785. money { &quot;mappings&quot;:\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=5674\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-5674","post","type-post","status-publish","format-standard","hentry","category-elasticsearch"],"_links":{"self":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5674"}],"version-history":[{"count":5,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5674\/revisions"}],"predecessor-version":[{"id":6016,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5674\/revisions\/6016"}],"wp:attachment":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}