{"id":1820,"date":"2014-12-16T17:45:38","date_gmt":"2014-12-16T17:45:38","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=1820"},"modified":"2014-12-16T17:45:38","modified_gmt":"2014-12-16T17:45:38","slug":"using-map-and-reduce-view-ranking","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/ko\/using-map-and-reduce-view-ranking\/","title":{"rendered":"\uc21c\uc704\ub97c \uc704\ud55c \uc9c0\ub3c4 \ubc0f \ucd95\uc18c \ubcf4\uae30 \uc0ac\uc6a9"},"content":{"rendered":"<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ubc84\uc804 2.0\ubd80\ud130 Couchbase \uc11c\ubc84\ub294 \ubdf0\ub77c\ub294 \uac1c\ub150\uc744 \ud1b5\ud574 JSON \ubb38\uc11c\uc5d0 \ub300\ud55c \uc778\ub371\uc2a4\ub97c \uc0dd\uc131\ud558\ub294 \uac15\ub825\ud55c \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ubcf4\uae30\ub97c \uc0ac\uc6a9\ud558\uc5ec \uae30\ubcf8 \uc778\ub371\uc2a4, \ubcf5\ud569 \uc778\ub371\uc2a4 \ubc0f \uc9d1\uacc4\ub97c \uc815\uc758\ud558\uc5ec \ub2e4\uc74c\uacfc \uac19\uc740 \uc791\uc5c5\uc744 \uc218\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/span><\/b><\/p>\n<p style=\"line-height: 1; margin-top: 0pt; margin-bottom: 0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ub2e4\uc591\ud55c JSON \uc18d\uc131\uc5d0 \ub300\ud55c \ubb38\uc11c \ucffc\ub9ac<\/span><\/b><\/p>\n<p style=\"line-height: 1; margin-top: 0pt; margin-bottom: 0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ud1b5\uacc4 \ubc0f \uc9d1\uacc4 \ub9cc\ub4e4\uae30<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ubdf0\ub294 \uad6c\uccb4\ud654\ub41c \uc778\ub371\uc2a4\ub97c \uc0dd\uc131\ud558\ubbc0\ub85c \ubbf8\ub9ac \uc815\uc758\ub41c \ucffc\ub9ac\ub97c \uc2e4\ud589\ud558\ub294 \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uc774 \ube14\ub85c\uadf8\uc5d0\uc11c\ub294 \ub9f5 \ubc0f \ucd95\uc18c\ub97c \uc0ac\uc6a9\ud558\uc5ec JSON \ubb38\uc11c \uc18d\uc131\uc744 \uc0c9\uc778\ud558\uace0 \ud574\ub2f9 \uc18d\uc131\uc744 \uae30\ubc18\uc73c\ub85c \ubb38\uc11c \uc21c\uc704\ub97c \uacb0\uc815\ud558\ub294 \ubcf4\uae30\ub97c \ub9cc\ub4dc\ub294 \uac04\ub2e8\ud55c \uc608\uc81c\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uc9c0\ub3c4\uc640 \ucd95\uc18c\ub97c \uc0ac\uc6a9\ud558\uba74 \uc21c\uc704\ub97c \uacb0\uc815\ud558\ub294 \ub9e4\uc6b0 \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 \ubc29\ubc95\uc774\uba70 \uc218\ubc31\ub9cc \uba85\uc758 \uc0ac\uc6a9\uc790\uc5d0 \uac78\uccd0 \ud655\uc7a5\ud560 \uc218 \uc788\uace0 \ub9e4\uc6b0 \ube60\ub978 \uc21c\uc704 \uc870\ud68c\ub97c \uc81c\uacf5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uace0\ub9c8\uc6cc\uc694 <\/span><a href=\"https:\/\/twitter.com\/apage43\" style=\"text-decoration:none;\"><span style=\"font-size:16px;font-family:Calibri;color:#1155cc;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;\">Aaron<\/span><\/a><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\"> \uac00\ub974\uccd0 \uc8fc\uc154\uc11c \uac10\uc0ac\ud569\ub2c8\ub2e4!<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uc608\ub97c \ub4e4\uc5b4 \uc810\uc218\ub098 \uacbd\ud5d8\uc5d0 \ub530\ub77c \uc0ac\uc6a9\uc790 \uc21c\uc704\ub97c \ub9e4\uae30\ub294 \ub370 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uc774 \ube14\ub85c\uadf8\uc5d0\uc11c\ub294 \uc774\ub984\uacfc \uacbd\ud5d8\uc774\ub77c\ub294 \ub450 \uac00\uc9c0 \uc18d\uc131\uc744 \uac00\uc9c4 \uc0ac\uc6a9\uc790 \ubb38\uc11c\uc5d0 \ub300\ud55c \uac1c\ub150\uc744 \uc124\uba85\ud558\uba70, \uacbd\ud5d8\uc744 \uae30\ubc18\uc73c\ub85c \uc774 \ubb38\uc11c\ub97c \uc0c9\uc778\ud558\uace0 \uacbd\ud5d8 \uc18d\uc131\uc5d0 \ub530\ub77c \uc21c\uc704\ub97c \uacb0\uc815\ud560 \uc218 \uc788\ub3c4\ub85d \ud569\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><br class=\"kix-line-break\" \/><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uba3c\uc800 Couchbase \uc11c\ubc84\uc5d0 \uc5f0\uacb0\ud558\uace0 \uc0ac\uc6a9\uc790 \ubb38\uc11c\ub97c \ub9cc\ub4e4 \uc218 \uc788\ub294 \uba87 \uac00\uc9c0 Java \ucf54\ub4dc\ub97c \uc791\uc131\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c Java \ucf54\ub4dc\ub294 \ub3c5\ub9bd\uc801\uc778 \ucf54\ub4dc\uc774\uba70 \uc0ac\uc6a9\uc790\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">JSON \uac1d\uccb4\ub97c \uc0dd\uc131\ud558\uae30 \uc704\ud574 Gson Google \ucf54\ub4dc \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \ud65c\uc6a9\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\">\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ud328\ud0a4\uc9c0 \ube14\ub85c\uadf8;<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">com.couchbase.client.CouchbaseClient\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">com.couchbase.client.CouchbaseConnectionFactoryBuilder\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">com.google.gson.Gson\uc744 \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">java.io.IOException\uc744 \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">java.io.UnsupportedEncodingException\uc744 \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">java.net.URI\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">java.util.ArrayList\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">UserDoc \ud074\ub798\uc2a4 {<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\ubb38\uc790\uc5f4 \uc774\ub984\uc785\ub2c8\ub2e4;<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\uc624\ub79c \uacbd\ud5d8;<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0UserDoc(\ubb38\uc790\uc5f4 \uc774\ub984, \uae34 \uacbd\ud5d8) {<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0this.name = \uc774\ub984;<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0this.experience = \uacbd\ud5d8;<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0}<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">}<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\/**<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">*<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">* \uc800\uc790 \uc54c\ub809\uc2dc\uc2a4<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">*\/<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uacf5\uc6a9 \ud074\ub798\uc2a4 RankView {<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\ube44\uacf5\uac1c \uc815\uc801 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4\ud074\ub77c\uc774\uc5b8\ud2b8 \ud074\ub77c\uc774\uc5b8\ud2b8;<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0public static void main(String[] args) throws UnsupportedEncodingException, IOException {<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ArrayList<uri> \ub178\ub4dc = \uc0c8 \ubc30\uc5f4 \ubaa9\ub85d<>();<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \ud074\ub7ec\uc2a4\ud130\uc758 \ub178\ub4dc\ub97c \ud558\ub098 \uc774\uc0c1 \ucd94\uac00\ud569\ub2c8\ub2e4(\uc0ac\uc6a9\uc790 \ub178\ub4dc\uc640 IP \uad50\ud658).<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0nodes.add(URI.create(\"https:\/\/127.0.0.1:8091\/pools\"));<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0 \uc5f0\uacb0\uc744 \uc2dc\ub3c4\ud569\ub2c8\ub2e4.<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0CouchbaseConnectionFactoryBuilder cfb = \uc0c8\ub85c\uc6b4 CouchbaseConnectionFactoryBuilder();<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0cfb.setOpTimeout(10000);<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0cfb.setReadBufferSize(1024);<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0cfb.setShouldOptimize(true);<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0cfb.setTimeoutExceptionThreshold(100);<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\uc2dc\ub3c4 {<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0client = new CouchbaseClient(cfb.buildCouchbaseConnection(nodes, \"default\", \"\"));<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0} catch (Exception e) {<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0System.err.println(\"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4\uc5d0 \uc5f0\uacb0\ud558\ub294 \ub3d9\uc548 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4: \" + e.getMessage());<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0System.exit(1);<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0UserDoc \uc0ac\uc6a9\uc790 = null;<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \uc0ac\uc6a9\uc790 \uc0dd\uc131<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0for (int i = 0; i &lt; 10; i++) {<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0user = new UserDoc(\"User\" + i, Math.round(Math.random()*1000));<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Gson json = \uc0c8 Gson();<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\ubb38\uc790\uc5f4 jsonString = json.toJson(user);<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0client.set(user.name, 0, jsonString);<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0client.shutdown();<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0}<\/span><\/b><\/code><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><code type=\"java\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">}<\/span><\/b><\/code><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\">\uc774 \ud504\ub85c\uadf8\ub7a8\uc744 \uc2e4\ud589\ud55c \ud6c4(URL \ub610\ub294 \ubc84\ud0b7 \uc774\ub984\uc744 \uc801\uc808\ud788 \ubcc0\uacbd\ud558\uc138\uc694) \uc774\uc81c \ubc84\ud0b7\uc5d0 10\uba85\uc758 \uc0ac\uc6a9\uc790\uac00 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4.<\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\">\u00a0<\/p>\n<p><\/p>\n<p><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><img decoding=\"async\" height=\"480px;\" src=\"https:\/\/lh3.googleusercontent.com\/CG2PkrfrulDrvD1Q1Uq98jz8N0nDgI9A99peb-WCMWNE3Nc_Zim0d5I678gp9Ol9ExSnvh9fxKKK_P02O4osGfYAuskHVLe8lKXEyiyoW6DxVz8yxls6DBIMPsMILJUWyA\" width=\"636px;\" \/><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ub2e4\uc74c \ub2e8\uacc4\ub294 \uc21c\uc704 \ubcf4\uae30\uac00 \uc788\ub294 \uc0ac\uc6a9\uc790 \ub514\uc790\uc778 \ubb38\uc11c\uc785\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uccab \ubc88\uc9f8 \ub2e8\uacc4\ub294 \uacbd\ud5d8 \uc18d\uc131\uc744 \ubc29\ucd9c\ud560 \uc21c\uc704 \ubcf4\uae30\uc6a9 \uac04\ub2e8\ud55c \ub9f5\uc744 \ub9cc\ub4dc\ub294 \uac83\uc785\ub2c8\ub2e4:<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ud568\uc218 (\ubb38\uc11c, \uba54\ud0c0) {<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0if (doc.experience)<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0<span class=\"Apple-tab-span\" style=\"white-space:pre;\"> <\/span>emit(doc.experience, null);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">}<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uc774\ub807\uac8c \ud558\uba74 \uacbd\ud5d8 \uc18d\uc131\uc744 \uae30\ubc18\uc73c\ub85c \uc778\ub371\uc2a4\uac00 \uc0dd\uc131\ub418\uc9c0\ub9cc \uc21c\uc704\ub97c \uacb0\uc815\ud560 \uc218\ub294 \uc5c6\uc2b5\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uc5ec\uae30\uc5d0 Reduce\ub97c \ucd94\uac00\ud558\ub294 \uac83\uc774 \uc801\ud569\ud569\ub2c8\ub2e4. \uac04\ub2e8\ud55c \ub0b4\uc7a5 _count reduce\ub97c \ucd94\uac00\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uc804\uccb4 \ubcf4\uae30\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \ud45c\uc2dc\ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4:<\/span><\/b><\/p>\n<p><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><img decoding=\"async\" height=\"398px;\" src=\"https:\/\/lh4.googleusercontent.com\/fbXWggcq0WztgCN0qk-KBiz2_Gya133KYK7XsiMW2p6_jzf1Qhh_Sln2d416qprywdU8o6C_D6GoHTTB9414QodfRawupvZWi7XD3M6-94Dr2AlbcSynNyLc2hIwVY2Jvg\" width=\"618px;\" \/><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uac10\uc18c \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uba74 \uc54c\ub824\uc9c4 \uacbd\ud5d8 \uac12(doc.experience\uc778 \uacbd\uc6b0)\uc744 \uac00\uc9c4 \uc0ac\uc6a9\uc790 \ubb38\uc11c\uc758 \uc218\ub97c \uc9d1\uacc4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ucffc\ub9ac \ub9e4\uac1c\ubcc0\uc218\ub97c \uc9c0\uc815\ud558\uc9c0 \uc54a\uc73c\uba74 \uc0dd\uc131\ud55c \ubb38\uc11c \uc218\uc778 10\uc744 \ucd9c\ub825\ud569\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ud2b9\uc815 \uc0ac\uc6a9\uc790\uc758 \uc21c\uc704\ub97c \uc870\ud68c\ud558\ub824\uba74 \uba3c\uc800 \ud2b9\uc815 \uc0ac\uc6a9\uc790(\uc774 \uc608\uc5d0\uc11c\ub294 User5)\uc758 \uc21c\uc704\ub97c \uc870\ud68c\ud574\uc57c \ud569\ub2c8\ub2e4:<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \ud2b9\uc815 \uc0ac\uc6a9\uc790 \uc870\ud68c<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\ubb38\uc790\uc5f4 jsonString = (\ubb38\uc790\uc5f4) client.get(\"User5\");<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0user = json.fromJson(jsonString, UserDoc.class);<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uac70\uae30\uc5d0\uc11c \ucd5c\ub300 \uac12\uc73c\ub85c \uc2dc\uc791\ud558\uc5ec \ub354 \ud070 \uacbd\ud5d8\uc744 \uac00\uc9c4 \ubaa8\ub4e0 \uc0ac\uc6a9\uc790\ub97c \ucea1\ucc98\ud558\uace0 \uc0ac\uc6a9\uc790\uc5d0 \ub300\ud55c \uac00\uce58\ub85c \ub05d\ub098\ub294 \ub0b4\ub9bc\ucc28\uc21c\uc758 \ubc94\uc704 \ucffc\ub9ac\ub85c \uc774 \uc218\ub97c \ud544\ud130\ub9c1\ud558\ub294 \ucffc\ub9ac\ub97c \ub9cc\ub4e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\ubcf4\uae30 \ubcf4\uae30 = client.getView(\"User\", \"Rank\");<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\ucffc\ub9ac \ucffc\ub9ac = \uc0c8 \ucffc\ub9ac();<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0query.setIncludeDocs(true).setLimit(10000);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0query.setRangeStart(Long.toString(Long.MAX_VALUE));<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0query.setRangeEnd(Long.toString(user.experience));<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0query.setDescending(true);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0query.setReduce(true);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ub530\ub77c\uc11c \uac10\uc18c\ub294 \ud574\ub2f9 \uc0ac\uc6a9\uc790\uc758 \uacbd\ud5d8\ubcf4\ub2e4 \ub354 \ud070 \uacbd\ud5d8\uc744 \uac00\uc9c4 \uc0ac\uc6a9\uc790 \uc218\ub97c \ucd9c\ub825\ud569\ub2c8\ub2e4. \uc21c\uc704\ub294 \ub2e8\uc21c\ud788 \ud574\ub2f9 \uc22b\uc790 + 1\uc785\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\ubdf0 \uc751\ub2f5 \uc751\ub2f5 = client.query(view, query);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\uc774\ud130\ub808\uc774\ud130<viewrow> itr = response.iterator();<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0while (itr.hasNext()) {<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ViewRow \ud589 = itr.next();<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0System.out.println(\"Rank: \" + Long.parseLong(row.getValue() + 1 );<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uc774\ub807\uac8c \ud558\uba74 \ud574\ub2f9 \uc0ac\uc6a9\uc790\uc758 \uacbd\ud5d8\uc5d0 \ub530\ub77c \uc21c\uc704\uac00 \ucd9c\ub825\ub429\ub2c8\ub2e4:<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uc21c\uc704: 7<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uc804\uccb4 Java \ucf54\ub4dc(\ub2e4\uc2dc \uc790\uccb4 \ud3ec\ud568)\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ud328\ud0a4\uc9c0 \ube14\ub85c\uadf8;<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">com.couchbase.client.CouchbaseClient\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">com.couchbase.client.CouchbaseConnectionFactoryBuilder\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">com.couchbase.client.protocol.views.Query\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">com.couchbase.client.protocol.views.View\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">com.couchbase.client.protocol.views.ViewResponse\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">com.couchbase.client.protocol.views.ViewRow\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">com.google.gson.Gson\uc744 \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">java.io.IOException\uc744 \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">java.io.UnsupportedEncodingException\uc744 \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">java.net.URI\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">java.util.ArrayList\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">java.util.Iterator\ub97c \uac00\uc838\uc635\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">UserDoc \ud074\ub798\uc2a4 {<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\ubb38\uc790\uc5f4 \uc774\ub984\uc785\ub2c8\ub2e4;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\uc624\ub79c \uacbd\ud5d8;<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0UserDoc(\ubb38\uc790\uc5f4 \uc774\ub984, \uae34 \uacbd\ud5d8) {<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0this.name = \uc774\ub984;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0this.experience = \uacbd\ud5d8;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0}<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">}<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\/**<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">*<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">* \uc800\uc790 \uc54c\ub809\uc2dc\uc2a4<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">*\/<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uacf5\uc6a9 \ud074\ub798\uc2a4 RankView {<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\ube44\uacf5\uac1c \uc815\uc801 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4\ud074\ub77c\uc774\uc5b8\ud2b8 \ud074\ub77c\uc774\uc5b8\ud2b8;<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0public static void main(String[] args) throws UnsupportedEncodingException, IOException {<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ArrayList<uri> \ub178\ub4dc = \uc0c8 \ubc30\uc5f4 \ubaa9\ub85d<>();<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \ud074\ub7ec\uc2a4\ud130\uc758 \ub178\ub4dc\ub97c \ud558\ub098 \uc774\uc0c1 \ucd94\uac00\ud569\ub2c8\ub2e4(\uc0ac\uc6a9\uc790 \ub178\ub4dc\uc640 IP \uad50\ud658).<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0nodes.add(URI.create(\"https:\/\/127.0.0.1:8091\/pools\"));<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0 \uc5f0\uacb0\uc744 \uc2dc\ub3c4\ud569\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0CouchbaseConnectionFactoryBuilder cfb = \uc0c8\ub85c\uc6b4 CouchbaseConnectionFactoryBuilder();<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0cfb.setOpTimeout(10000);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0cfb.setReadBufferSize(1024);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0cfb.setShouldOptimize(true);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0cfb.setTimeoutExceptionThreshold(100);<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\uc2dc\ub3c4 {<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0client = new CouchbaseClient(cfb.buildCouchbaseConnection(nodes, \"default\", \"\"));<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0} catch (Exception e) {<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0System.err.println(\"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4\uc5d0 \uc5f0\uacb0\ud558\ub294 \ub3d9\uc548 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4: \" + e.getMessage());<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0System.exit(1);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0UserDoc \uc0ac\uc6a9\uc790 = null;<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Gson json = null;<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \uc0ac\uc6a9\uc790 \uc0dd\uc131<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0for (int i = 0; i &lt; 10; i++) {<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0user = new UserDoc(\"User\" + i, Math.round(Math.random() * 1000));<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0json = \uc0c8 Gson();<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\ubb38\uc790\uc5f4 jsonString = json.toJson(user);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0client.set(user.name, 0, jsonString);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ \ud2b9\uc815 \uc0ac\uc6a9\uc790 \uc870\ud68c<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\ubb38\uc790\uc5f4 jsonString = (\ubb38\uc790\uc5f4) client.get(\"User5\");<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0user = json.fromJson(jsonString, UserDoc.class);<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\ubcf4\uae30 \ubcf4\uae30 = client.getView(\"User\", \"Rank\");<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\ucffc\ub9ac \ucffc\ub9ac = \uc0c8 \ucffc\ub9ac();<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0query.setIncludeDocs(true).setLimit(10000);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0query.setRangeStart(Long.toString(Long.MAX_VALUE));<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0query.setRangeEnd(Long.toString(user.experience));<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0query.setDescending(true);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0query.setReduce(true);<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\ubdf0 \uc751\ub2f5 \uc751\ub2f5 = client.query(view, query);<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\uc774\ud130\ub808\uc774\ud130<viewrow> itr = response.iterator();<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0while (itr.hasNext()) {<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ViewRow \ud589 = itr.next();<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0System.out.println(\"Rank: \" + Long.parseLong(row.getValue() + 1 );<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0client.shutdown();<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\u00a0\u00a0\u00a0}<\/span><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">}<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\ub9f5\uacfc \ucd95\uc18c \ubcf4\uae30\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc21c\uc704\ub97c \uc870\ud68c\ud558\uba74 \ud074\ub77c\uc774\uc5b8\ud2b8 \uce21\uc5d0\uc11c \ucd94\uac00 \ucc98\ub9ac\ub97c \ud558\uc9c0 \uc54a\uace0\ub3c4 \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc73c\ub85c \uc21c\uc704\ub97c \uc870\ud68c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/b><\/p>\n<p><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">Couchbase\uc758 \ubcf4\uae30 \ubc0f \ucffc\ub9ac\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\ub824\uba74 \ub2e4\uc74c\uc744 \ucc38\uc870\ud558\uc138\uc694: <\/span><a href=\"https:\/\/www.couchbase.com\/blog\/ko\/docs\/couchbase-devguide-2.1.0\/indexing-querying-data.html\/\" style=\"text-decoration:none;\"><span style=\"font-size:16px;font-family:Calibri;color:#0000ff;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;\">https:\/\/www.couchbase.com\/docs\/couchbase-devguide-2.1.0\/indexing-querying-data.html<\/span><\/a><\/b><\/p>\n<p dir=\"ltr\" style=\"line-height:1;margin-top:0pt;margin-bottom:0pt;\"><b id=\"docs-internal-guid-65f32feb-7f30-01f1-3368-80d4d39be869\" style=\"font-weight:normal;\"><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\">\uc9c8\ubb38 \ubc0f \uc758\uacac <\/span><a href=\"mailto:alexis@couchbase.com\" style=\"text-decoration:none;\"><span style=\"font-size:16px;font-family:Calibri;color:#0000ff;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;\">alexis@couchbase.com<\/span><\/a><span style=\"font-size:16px;font-family:Calibri;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap;\"> \ub610\ub294 \ud2b8\uc704\ud130\uc5d0\uc11c @alexisroos\ub97c \ud314\ub85c\uc6b0\ud558\uc138\uc694.<\/span><\/b><\/p>","protected":false},"excerpt":{"rendered":"<p>Starting from version 2.0, Couchbase server offers a powerful way of creating indexes for JSON documents through the concept of views. Using views, it is possible to define primary indexes, composite indexes and aggregations allowing to: . query documents on [&hellip;]<\/p>","protected":false},"author":15,"featured_media":13873,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[1248,1241],"ppma_author":[8994],"class_list":["post-1820","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-mapreduce","tag-views"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v26.1.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using Map and Reduce View for Ranking - The Couchbase Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/ko\/using-map-and-reduce-view-ranking\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Map and Reduce View for Ranking\" \/>\n<meta property=\"og:description\" content=\"Starting from version 2.0, Couchbase server offers a powerful way of creating indexes for JSON documents through the concept of views. Using views, it is possible to define primary indexes, composite indexes and aggregations allowing to: . query documents on [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/ko\/using-map-and-reduce-view-ranking\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-16T17:45:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/11\/couchbase-nosql-dbaas.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alexis Roos\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alexis Roos\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/\"},\"author\":{\"name\":\"Alexis Roos\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/590e3e4872f83fe795d5a39eef3f9fae\"},\"headline\":\"Using Map and Reduce View for Ranking\",\"datePublished\":\"2014-12-16T17:45:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/\"},\"wordCount\":885,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"keywords\":[\"MapReduce\",\"views\"],\"articleSection\":[\"Uncategorized\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/\",\"name\":\"Using Map and Reduce View for Ranking - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2014-12-16T17:45:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Map and Reduce View for Ranking\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/590e3e4872f83fe795d5a39eef3f9fae\",\"name\":\"Alexis Roos\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/0ab9bfaebda64901a6d385eb29a1eb04\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1af4f7380fe5fbd14381a9496c85b09b40d47524abcf8d3c68706a59b80c00c7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1af4f7380fe5fbd14381a9496c85b09b40d47524abcf8d3c68706a59b80c00c7?s=96&d=mm&r=g\",\"caption\":\"Alexis Roos\"},\"description\":\"Alexis Roos is senior engineering manager at Salesforce. Alexis has over 20 years of software engineering experience with the last five years focused on large-scale data science and engineering, working for SIs in Europe, Sun Microsystems\/Oracle, and several startups, including Radius Intelligence, Concurrent, and Couchbase.\",\"url\":\"https:\/\/www.couchbase.com\/blog\/ko\/author\/alexis-roos\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Using Map and Reduce View for Ranking - The Couchbase Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/ko\/using-map-and-reduce-view-ranking\/","og_locale":"ko_KR","og_type":"article","og_title":"Using Map and Reduce View for Ranking","og_description":"Starting from version 2.0, Couchbase server offers a powerful way of creating indexes for JSON documents through the concept of views. Using views, it is possible to define primary indexes, composite indexes and aggregations allowing to: . query documents on [&hellip;]","og_url":"https:\/\/www.couchbase.com\/blog\/ko\/using-map-and-reduce-view-ranking\/","og_site_name":"The Couchbase Blog","article_published_time":"2014-12-16T17:45:38+00:00","og_image":[{"width":1800,"height":630,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/11\/couchbase-nosql-dbaas.png","type":"image\/png"}],"author":"Alexis Roos","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alexis Roos","Est. reading time":"5\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/"},"author":{"name":"Alexis Roos","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/590e3e4872f83fe795d5a39eef3f9fae"},"headline":"Using Map and Reduce View for Ranking","datePublished":"2014-12-16T17:45:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/"},"wordCount":885,"commentCount":4,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","keywords":["MapReduce","views"],"articleSection":["Uncategorized"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/","url":"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/","name":"Using Map and Reduce View for Ranking - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","datePublished":"2014-12-16T17:45:38+00:00","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/using-map-and-reduce-view-ranking\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using Map and Reduce View for Ranking"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ube14\ub85c\uadf8","description":"NoSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4, Couchbase","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ube14\ub85c\uadf8","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/590e3e4872f83fe795d5a39eef3f9fae","name":"\uc54c\ub809\uc2dc\uc2a4 \ub8e8\uc2a4","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/0ab9bfaebda64901a6d385eb29a1eb04","url":"https:\/\/secure.gravatar.com\/avatar\/1af4f7380fe5fbd14381a9496c85b09b40d47524abcf8d3c68706a59b80c00c7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1af4f7380fe5fbd14381a9496c85b09b40d47524abcf8d3c68706a59b80c00c7?s=96&d=mm&r=g","caption":"Alexis Roos"},"description":"Alexis Roos\ub294 Salesforce\uc758 \uc120\uc784 \uc5d4\uc9c0\ub2c8\uc5b4\ub9c1 \uad00\ub9ac\uc790\uc785\ub2c8\ub2e4. Alexis\ub294 20\ub144 \uc774\uc0c1\uc758 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uc5d4\uc9c0\ub2c8\uc5b4\ub9c1 \uacbd\ub825\uc744 \ubcf4\uc720\ud558\uace0 \uc788\uc73c\uba70, \uc9c0\ub09c 5\ub144\uac04\uc740 \ub300\uaddc\ubaa8 \ub370\uc774\ud130 \uacfc\ud559 \ubc0f \uc5d4\uc9c0\ub2c8\uc5b4\ub9c1\uc5d0 \uc911\uc810\uc744 \ub450\uace0 \uc720\ub7fd\uc758 SI, Sun Microsystems\/Oracle \ubc0f Radius Intelligence, Concurrent, Couchbase\ub97c \ube44\ub86f\ud55c \uc5ec\ub7ec \uc2a4\ud0c0\ud2b8\uc5c5\uc5d0\uc11c \uadfc\ubb34\ud588\uc2b5\ub2c8\ub2e4.","url":"https:\/\/www.couchbase.com\/blog\/ko\/author\/alexis-roos\/"}]}},"authors":[{"term_id":8994,"user_id":15,"is_guest":0,"slug":"alexis-roos","display_name":"Alexis Roos","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/1af4f7380fe5fbd14381a9496c85b09b40d47524abcf8d3c68706a59b80c00c7?s=96&d=mm&r=g","author_category":"","last_name":"Roos","first_name":"Alexis","job_title":"","user_url":"","description":"Alexis Roos\ub294 Salesforce\uc758 \uc120\uc784 \uc5d4\uc9c0\ub2c8\uc5b4\ub9c1 \uad00\ub9ac\uc790\uc785\ub2c8\ub2e4. Alexis\ub294 20\ub144 \uc774\uc0c1\uc758 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uc5d4\uc9c0\ub2c8\uc5b4\ub9c1 \uacbd\ub825\uc744 \ubcf4\uc720\ud558\uace0 \uc788\uc73c\uba70, \uc9c0\ub09c 5\ub144\uac04\uc740 \ub300\uaddc\ubaa8 \ub370\uc774\ud130 \uacfc\ud559 \ubc0f \uc5d4\uc9c0\ub2c8\uc5b4\ub9c1\uc5d0 \uc911\uc810\uc744 \ub450\uace0 \uc720\ub7fd\uc758 SI, Sun Microsystems\/Oracle \ubc0f Radius Intelligence, Concurrent, Couchbase\ub97c \ube44\ub86f\ud55c \uc5ec\ub7ec \uc2a4\ud0c0\ud2b8\uc5c5\uc5d0\uc11c \uadfc\ubb34\ud588\uc2b5\ub2c8\ub2e4."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/1820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/comments?post=1820"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/1820\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media\/13873"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media?parent=1820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/categories?post=1820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/tags?post=1820"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/ppma_author?post=1820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}