r/java • • Feb 01 '20

My last project: Document (file) searcher using pseudo fuzzy logic.

I write projects so far between that I have to re-learn Java each time. Fortunately it is like riding a bicycle, you never forget ;-)

This application searches for files using class FuzzyMatch with its methods rateWords() & rateSentences().

In normal search mode it chops each file into sub-path, name and extension and compares each 'sentence' with the corresponding search field.

Here are some use examples (I have omitted some word letters to show that it is not a simple 'grepper'):

Normal_1

Normal_2

Normal_3

It turns out it is extremely fast. Here are some tests (which show, again, that the optimal number of threads is the number of CPU cores).

The application has other, specialized, search modes adapted to my 'Common Library' which according to my notes:

... includes all types of documents in different formats, including
'bundles': archives including data and instructions on how to treat that data.
Multimedia (Audio, Video, Images) is also included in the libraries. Items are
sorted, in $COMMON_TEXT_DIR, by author and by categories as defined in
'$COMMON_ETC_DIR/CommonTextKeys': ls -lR $COMMON_ETC_DIR/CommonTextKeys
...

Here are some use examples:

All_1

All_2

All_3

All_4

All_5

All_6

Audio_1

Images_1 // I have thousands of pictures, in slides, from a lifetime of traveling but I am too lazy to digitize them :-(

Video_1

Please, let me know what you think of the application.

29 Upvotes

7 comments sorted by