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 4067908
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:18:33+00:00 2026-05-20T16:18:33+00:00

The documents in my database have names and descriptions among other fields. I would

  • 0

The documents in my database have names and descriptions among other fields. I would like to allow the users to search for those documents by providing some keywords. The keywords should be used to lookup in both the name and the description field. I’ve read the mongoDB documentation on full text search and it looks really nice and easy if I want to search for keywords in the name field of my documents. However, the description field contains free form text and can take up to 2000 characters, so potentially there are a few hundred words per document. I could treat them the same way as names and just split the whole description into separate words and store it as another tag-like array (as per the Mongo example), but it seems like a terrible idea – each document’s size could be almost doubled, plus there are characters like dots, commas, etc.

I know there are specialized solutions for exactly this kind of problems and I was just looking at Lucene.Net, I also saw Solr mentioned here and there.

Should I be looking to implement this search feature in mongoDB or should I use a specialized solution? Currently I just have one instance of mongod and one instance of a web server. We might need to scale later, but for now that is all I use. I’d appreciate any suggestions on how to implement this feature.

  • 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-20T16:18:34+00:00Added an answer on May 20, 2026 at 4:18 pm

    If storing the text split out into an array per the documented approach is not viable (I can understand your concerns), then I think you should look into a specialised solution.

    Quote from the MongoDB documentation:

    MongoDB has interesting functionality
    that makes certain search functions
    easy. That said, it is not a dedicated
    full text search engine.

    So, for more advanced full text search functionality I think a dedicated engine would be more suited. I have no experience in this area so I can’t offer much in the way of suggestions from here, other than what my thoughts would be if I was in the same boat:

    • how much work involved in using a dedicated full-text search engine instead of MongoDB’s functionality?
    • does that add more complexity / is it worth it?
    • would it be quicker/simpler to use MongoDB and just take the hit on the extra disk space?
    • maybe MongoDB will support better full-text functionality in future (it is rapidly evolving after all)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Many database systems don't allow comments or descriptions of tables and fields, so how
I have a database full of small HTML documents and I need to programmatically
I have a sql database that stores some documents. A user can sign into
In a MySQL database I have documents of different type: some have text content,
Lets say I have two types of documents stored in my CouchDB database. First
I have a database that stores PDF documents as a byte stream in a
Say I have the following documents in my database: a_doc1, a_doc2, b_doc1, and b_doc2
I want to create a system that stores books (and some other documents). Users
I have profile pages for users of my little card game, like this one
I have 3 PDF documents that are generated on the fly by a legacy

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.