Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9229671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:37:49+00:00 2026-06-18T05:37:49+00:00

I have installed and configured MongoDB and ES with mongodb river. But I’m not

  • 0

I have installed and configured MongoDB and ES with mongodb river. But I’m not sure if I really understand rivers in ES. For example, I want index collection “users” from mongodb.

I will send curl PUT/POST request to url /_river/mongodb_users/_meta

{
  "type": "mongodb",
  "mongodb": {
    "db": "somedb",
    "collection": "users"
  },
  "index": {
    "name": "users",
    "type": "user"
  }
}

But now, I want to index second collection, for example “users2”. I really need to create new river using curl POST/PUT on url like /_river/mongodb_users2/_meta with JSON:

{
  "type": "mongodb",
  "mongodb": {
    "db": "somedb",
    "collection": "users2"
  },
  "index": {
    "name": "users2",
    "type": "user"
  }
}

I can not use already created river “mongodb_users”? I will need create one river for one collection?

Thank you for explanation!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:37:50+00:00Added an answer on June 18, 2026 at 5:37 am

    Yes. The way MongoDB river works does not allow to fetch content from more than one collection in a single river.

    But, you can create as many river as you need.

    That said, if you want to index users1 to users type in Elasticsearch and users2 to the same users type, you can (as soon as they don’t use the same IDs).

    Just modify index.type to "users".

    Does it help?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed C/C++ plugin in Netbeans 7.1 and configured MinGW. But when I
We currently have JDK1.7 installed and configured to use G1GC. What i want to
I am using Linux Mint 12, Kernel 3. I have installed and configured Open
I am going through my first node.js project. I've installed mongodb, have a server.js
I have installed/configured Elmah on my personal SharePoint dev environment and everything works great
I have installed and configured django-postman based on documentation : in urls.py in root
I have installed and configured SharePoint 2010 to run on the same box as
I have installed and configured User Profile module, which allows me to add fields
I have successfully installed and configured msysGit Portable on my flash drive, and have
I have installed the Varnish cache with my Apache web server and configured them

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.