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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:27:22+00:00 2026-05-26T08:27:22+00:00

I am currently trying to build a small system that read’s in a bunch

  • 0

I am currently trying to build a small system that read’s in a bunch of file names (at the moment, only a few hundred), and then allows the user to search the file names. The end goal is to find dulicates, ones that will not necassarily have the exact same names, but will share common words. I would eventually like to add a feature that allows it to suggest possible duplicates as well.

Currently I add each file path to an ArrayList, and then pass each word of the file name to a Hashtable which uses chaining. The words are created using String.split(), and all non alphanumeric characters are converted into white spaces. This part works fine, and you can search for single word’s no worries.

I know the theory behind searching multiple terms, getting the response and building a basic relevance on how many time it selects each document.

My current issue is with file names that are something akin to this ‘mybestfile’. My program can only handle them as a single word. and unless searching for ‘mybestfile’ you will find nothing.

Can anyone suggest a design path that I should head down from here. I know I could parse in an entire dictionary, then try and pull words out by matching substrings, but to be honest, this is just meant to be a simplistic program and I’d rather avoid that kind of thing.

Any help would be appreciated!!

(Also the point of this is half learning, half proving I can do it, so I would like to know of solutions that already exist, but more for how they did it, rather then using them instead)

  • 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-26T08:27:23+00:00Added an answer on May 26, 2026 at 8:27 am

    You could start by playing with various “sounds like” and distance algorithms, available in the Apache Codec language package. (I think the distance algo is in Commons Lang, not codec.)

    SimMetrics is another. Can’t actually find the one I’m looking for, but here’s a list, too.

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

Sidebar

Related Questions

I'm currently trying to build a C++ library (DLL file) that interfaces with a
I am currently trying to build a little widget that will retrieve a list
I am currently trying to develop a small simulation program in xna that takes
I am currently trying to build some test code that uses Google C++ Test
i am currently trying to build a little webapp that uses Spring, Hibernate and
I am currently trying to build a cakephp app that will list items from
I am trying to build a small application that logins into a server and
I am currently trying to build an order form for small ads. My problem
I'm trying to build a small inventory application in Java, that switches views (or
I'm currently trying to build a more or less complete set of unit tests

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.