{"id":1775,"date":"2015-09-16T17:30:38","date_gmt":"2015-09-16T08:30:38","guid":{"rendered":"http:\/\/bluesoul.pe.kr\/wp\/?p=1775"},"modified":"2026-10-29T08:02:22","modified_gmt":"2026-10-29T08:02:22","slug":"mongodb%ec%99%80-elasticsearch-%ec%97%b0%eb%8f%99","status":"publish","type":"post","link":"https:\/\/bluesoul.pe.kr\/wp\/?p=1775","title":{"rendered":"mongodb\uc640 elasticsearch \uc5f0\ub3d9"},"content":{"rendered":"<p>1. mongodb\uc124\uce58\uc640 elasticsearch\uc124\uce58\ub294 \uc54c\uc544\uc11c~<\/p>\n<p>2. elasticsearch-head \ud50c\ub7ec\uadf8\uc778 \uc124\uce58<\/p>\n<pre><code>plugin --install mobz\/elasticsearch-head<\/code><\/pre>\n<pre><code>http:\/\/localhost:9200\/_plugin\/head\/ \uad00\ub9ac\uc790\ud398\uc774\uc9c0 \uc8fc\uc18c<\/code><\/pre>\n<p>2. elasticsearch-river-mongdb \ud50c\ub7ec\uadf8\uc778 \ubc0f elasticsearch-mapper-attachments \uc124\uce58<\/p>\n<pre><code>bin\/plugin --install com.github.richardwilly98.elasticsearch\/elasticsearch-river-mongodb\/1.6.0\u00a0<\/code><\/pre>\n<pre><code>bin\/plugin --install elasticsearch\/elasticsearch-mapper-attachments\/1.6.0<\/code><\/pre>\n<p>3. \ud55c\uae00\ubd84\uc11d \ud50c\ub7ec\uadf8\uc778 \uc124\uce58<\/p>\n<pre><code>bin\/plugin -url https:\/\/dl-web.dropbox.com\/spa\/grpekzky9x5y6mc\/elastic-analysis-korean\/public\/elasticsearch-analysis-korean-1.3.0.zip -install analysis-korean<\/code><\/pre>\n<p>4. \uc5f0\uacb0<\/p>\n<pre><code>curl -XPUT localhost:9200\/_river\/DATABASE_NAME\/_meta -d '{ \"type\": \"mongodb\", \"mongodb\": { \"servers\": [ { \"host\": \"127.0.0.1\", \"port\": 27017 } ], \"db\": \"DATABASE_NAME\", \"collection\": \"ACTUAL_COLLECTION_NAME\", \"options\": { \"secondary_read_preference\": true }, \"gridfs\": false }, \"index\": { \"name\": \"ARBITRARY INDEX NAME\", \"type\": \"ARBITRARY TYPE NAME\" } }'<\/code><\/pre>\n<p>ARBITRARY INDEX NAME \uc18c\ubb38\uc790\ub85c\ub9cc \uc368\uc57c<\/p>\n<p>\uc5ec\uae30\uc11c \uc5c4\uccad \ud5e4\ub9f4<\/p>\n<p>&nbsp;<\/p>\n<p><a title=\"http:\/\/stackoverflow.com\/questions\/23846971\/how-to-use-elasticsearch-with-mongodb\" href=\"http:\/\/stackoverflow.com\/questions\/23846971\/how-to-use-elasticsearch-with-mongodb\">http:\/\/stackoverflow.com\/questions\/23846971\/how-to-use-elasticsearch-with-mongodb<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. mongodb\uc124\uce58\uc640 elasticsearch\uc124\uce58\ub294 \uc54c\uc544\uc11c~ 2. elasticsearch-head \ud50c\ub7ec\uadf8\uc778 \uc124\uce58 plugin &#8211;install mobz\/elasticsearch-head http:\/\/localhost:9200\/_plugin\/head\/ \uad00\ub9ac\uc790\ud398\uc774\uc9c0 \uc8fc\uc18c 2. elasticsearch-river-mongdb \ud50c\ub7ec\uadf8\uc778 \ubc0f elasticsearch-mapper-attachments \uc124\uce58 bin\/plugin &#8211;install com.github.richardwilly98.elasticsearch\/elasticsearch-river-mongodb\/1.6.0\u00a0 bin\/plugin &#8211;install elasticsearch\/elasticsearch-mapper-attachments\/1.6.0 3. \ud55c\uae00\ubd84\uc11d \ud50c\ub7ec\uadf8\uc778 \uc124\uce58 bin\/plugin -url https:\/\/dl-web.dropbox.com\/spa\/grpekzky9x5y6mc\/elastic-analysis-korean\/public\/elasticsearch-analysis-korean-1.3.0.zip -install analysis-korean 4. \uc5f0\uacb0 curl -XPUT localhost:9200\/_river\/DATABASE_NAME\/_meta -d &#8216;{ &#8220;type&#8221;: &#8220;mongodb&#8221;, &#8220;mongodb&#8221;: { &#8220;servers&#8221;: [ { &#8220;host&#8221;: &#8220;127.0.0.1&#8221;, &#8220;port&#8221;: 27017 } ], &hellip; <a href=\"https:\/\/bluesoul.pe.kr\/wp\/?p=1775\" class=\"more-link\">\uacc4\uc18d \uc77d\uae30<span class=\"screen-reader-text\"> &#8220;mongodb\uc640 elasticsearch \uc5f0\ub3d9&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1775","post","type-post","status-publish","format-standard","hentry","category-tip"],"_links":{"self":[{"href":"https:\/\/bluesoul.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bluesoul.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bluesoul.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bluesoul.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bluesoul.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1775"}],"version-history":[{"count":1,"href":"https:\/\/bluesoul.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1775\/revisions"}],"predecessor-version":[{"id":1821,"href":"https:\/\/bluesoul.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1775\/revisions\/1821"}],"wp:attachment":[{"href":"https:\/\/bluesoul.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bluesoul.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bluesoul.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}