title: Apache Lucene and fuzzy search in text document by list of candidate words
body: <p>I have the text file after OCR process. Very often this text contains corrupted words because of bad image quality of the original documents.</p>
  
  <p>Also I have a list of the valid company names which can occur in the mentioned text file.</p>
  
  <p>Based on this company names list I'd like to determine the company name which owns the scanned document(even if the company name is a slightly corrupted inside of the text file).</p>
  
  <p>I'd like to do something like fuzzy search over the scanned document in order to try to find company name from the list there. The winner will be the company name with the highest score matching.</p>
  
  <p>I think I can use Apache Lucene functionality for this purpose. Could you please suggest or it is possible to implement with Apache Lucene and if so show an example.</p>