r/java • u/glesialo • 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'):
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:
Images_1 // I have thousands of pictures, in slides, from a lifetime of traveling but I am too lazy to digitize them :-(
Please, let me know what you think of the application.
View all comments
Show parent comment
1
u/glesialo Feb 01 '20
'Common Library' is part of an idea I have been working on for many years: In my system a generous pseudo-user, 'common', provides all other users with environment, services, software and data. A bunch of Java classes, 'org.common.libraries.*', is part of the software and that part I can't post, although I can make an exception of 'FuzzyMatch.java'.
If you want I can also post all the project ('FindDocuments') classes. It won't compile because it uses several 'org.common.libraries.*' classes but you'll get the idea of how it works.