Last active
August 29, 2015 14:24
-
-
Save ptgamr/ec4e26ae33cc359a5b59 to your computer and use it in GitHub Desktop.
elasticsearch-mongodb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7871* bin/plugin --install com.github.richardwilly98.elasticsearch/elasticsearch-river-mongodb/2.0.9 | |
7872* bin/plugin install elasticsearch/elasticsearch-mapper-attachments/2.6.0 | |
7873* bin/plugin install mobz/elasticsearch-head | |
7874* bin/elasticsearch | |
7875* -XDELETE curl localhost:9200/_river | |
7876* curl -XDELETE localhost:9200/_river | |
7877* curl -XPUT "localhost:9200/_river/players/_meta" -d '\n{\n "type": "mongodb",\n "mongodb": { \n "db": "new_river", \n "collection": "players"\n }, \n "index": { \n "name": "players", \n "type": "playerIndexType"\n }\n}' | |
7878* sudo mongod --replSet rs0 | |
7879* mongo | |
7880* curl -XPUT "localhost:9200/_river/players/_meta" -d '\n{\n "type": "mongodb",\n "mongodb": { \n "db": "new_river", \n "collection": "players"\n }, \n "index": { \n "name": "players", \n "type": "playerIndexType"\n }\n}' | |
7881* bin/elasticsearch | |
7882* curl -XDELETE localhost:9200/_river | |
7883* curl -XPUT "localhost:9200/_river/players/_meta" -d '\n{\n "type": "mongodb",\n "mongodb": { \n "db": "new_river", \n "collection": "players"\n }, \n "index": { \n "name": "players", \n "type": "playerIndexType"\n }\n}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment