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

  • Home
  • SEARCH
  • 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 6565445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:05:42+00:00 2026-05-25T14:05:42+00:00

I have two very large(30000+ documents) collections, one contains words extracted from a text

  • 0

I have two very large(30000+ documents) collections, one contains words extracted from a text file(collection name ‘word’) and one contains words from a dictionary(collection name ‘dictionary’).

How can I get the words that exist in both collections?

(I’ve simplified the situation, documents inside the ‘word’ collection contain metadata about the words, so each word has to be a separate document.)

  • 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-05-25T14:05:43+00:00Added an answer on May 25, 2026 at 2:05 pm

    Copy both collections into a single collection (include a discriminator field if necessary so you can tell what kind of document you have in each instance).

    Run map-reduce on that collection

    In Map, emit the word as the key and a value, say {instance:1, dict:0} or {instance:0, dict:1} depending on whether the document being mapped is an instance or a dictionary entry. (You could add more fields here into the values as necessary.)

    In Reduce, accumulate the scores (as usual).

    Now do a query looking for instance > 0 and dict > 0 and you have all of the words that are in both.

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

Sidebar

Related Questions

I have two (very large) text files. What is the fastest way - in
I have two arrays, one is very large (more than million entries) and other
I have two very large files we'll call Old and New. New contains many
I have two very large enterprise tables in an Oracle 10g database. One table
On a Linux system, I have a very large text file and I need
I have two very large strings and I am trying to find out their
I have a Ruby program that loads up two very large yaml files, so
I have two very large matrices (60x25000) and I'd like to compute the correlation
I have two very large lists and to loop through it once takes at
I have two very large tables, Table1 and Table2. They look like this: Table1

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.