MongoDB River Plugin for ElasticSearch

Ok, my bad.
I've switched to ES RC1 while the plugin was still using 0.18.5.
So I've updated all the changes and now everything seems to work.

Thanks for the river :wink:

On Feb 8, 9:06 pm, Arny arny...@googlemail.com wrote:

I don't know if I'm missing something, but I can't get this to work.

  1. I've set up an replica with just 1 node for test purposes.
  2. Installed the river just like in docs stated.
  3. Add an document to mongodb

But, nothing happens?
I don't see any exceptions or anything that would show a failure.

I'm using Java API to set up the river:
this.esNode = NodeBuilder.nodeBuilder()
.settings(ImmutableSettings.settingsBuilder().put("gateway.type",
"local")).node();

            // mongodb river index
            XContentBuilder json;
            try {
                    json = jsonBuilder()
                                    .startObject()
                                            .field("type", "mongodb")
                                            .field("mongodb").startObject()
                                                    .field("db", "test")
                                                    .field("collection", "test")
                                            .endObject()
                                            .field("index").startObject()
                                                    .field("name", "testname")
                                                    .field("type", "testtype")
                                            .endObject()
                                    .endObject();

                    this.esNode.client().prepareIndex("_river", "mongodb",

"_meta").setSource(json).execute();

On Jan 30, 5:34 pm, Richard Louapre richard.loua...@gmail.com
wrote:

Hi,

You can find [0] a first implementation of MongoDB plugin for ES.

This version has the following features:

  • Monitoring MongoDB using oplog.rs collection.
  • Support for GridFS.

Please check the wiki [1] for more details.

[0] -GitHub - richardwilly98/elasticsearch-river-mongodb: MongoDB River Plugin for ElasticSearch
[1] -Home · richardwilly98/elasticsearch-river-mongodb Wiki · GitHub

Thanks,
Richard.