I need a table that contains information about a file, and a value that identifies the content in this file. The filetypes is primarily pdf, and i have the logic to extract content from the files in place.
Right now i create a hash value of the content and place this in the table. With this value i am able to find duplicate files. But, the customer also want to identify files that are nearly the same. For example if the copyright information is changed - or some other minor change. There is going to be a manual review of the result of this, so I don't need a 100% hit rate.
The first thing that come to my mind is to make a table that contains the 50 most popular words, and associate them with an id. Than i can use this and do a word count in each of the documents. The result will be a string like this ( where word 1 is hit 20 times, word 2 12 times ) "1:20-2:12......"
Anyone have a better suggestion on how to make a value that can identify nearly identical files / strings?