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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:09:42+00:00 2026-06-01T15:09:42+00:00

I need to put together a data structure that will efficiently provide keyword search

  • 0

I need to put together a data structure that will efficiently provide keyword search facilities.

My metrics are:

  1. Circa 500,000 products.
  2. Circa 20+ keywords per product (a guess).
  3. Products are identified by an ID of about 10 digits but may be any ASCII codes going forward.

I would like to try to fit the data structure in memory if possible. I will be on a server so I can assume some significant memory availability.

Speed is important. Using LIKE database queries will not be an acceptable solution.

Any ideas for a data structure?

My thoughts:

TrieMap

Very efficient for the keywords but there would need to be a list of product IDs hanging off any leaf so seriously memory hungry. Any ideas that could help with that?

Compression

Various compression schemes come to mind but none jump out as of significant value.

Has anyone else put something like this together? Could you share your experiences?

The data may change but not often. It would be reasonable to rebuild the structure on a daily basis to accommodate changes.

  • 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-01T15:09:43+00:00Added an answer on June 1, 2026 at 3:09 pm

    Have you thought about using lucene either in memory or as a file system index?

    It is quite fast and has lots of room for further requirements that might arise in the future.

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

Sidebar

Related Questions

I have a pretty large tree data structure that will get updated (nodes removed
i am connecting access to a mysql db. i need to put together two
I need to put a little project together for myself, and I need some
I need to put a one second delay in this jQuery function so that
I'm trying to put together some career-related resources and I need access to the
I am trying to put together a checklist things I need to keep in
I put together a simple script that pulls the product name, category name and
I have a little php/mysql app I put together that takes an input form
I'm trying to put together a command to extract the data from different tables
I need to put together some coding to enable foreman to find the bricklayer

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.