title: Create Google like document search page
body: <p>Good day,</p>
  
  <p>I have thoroughly searched the internet (and this site) but have not found an (complete) answer and have not yet been able to implement my own solution.
  If it seems I missed a solution already posted on Stackoverflow; my apologies in advance.</p>
  
  <p>My company scans all incoming mail.
  These are then processed by ABBYY Finereader for OCR data. 
  All these documents reside on a NAS in a datacenter and are accessible through a WEBDAV connection. What I want is to index all these files (let's stick with only PDF for now) and make them searchable, and accessible through a Google like search website where a result can be clicked to open the corresponding pdf file in the browser for viewing / downloading.</p>
  
  <p>Here is the problem;
  I have setup SOLR / Tika and can index a pdf file, search for it and find the result.
  What is the best way to index the entire folder the scanned documents are saved to?
  Ideally all this runs on a linux server so I can mount this directory.</p>
  
  <p>How do I watch this directory for new files so that they are automatically indexed?</p>
  
  <p>How do I track files if they are moved to a (new) directory within the Root (or are deleted / renamed) and have the index updated automatically?</p>
  
  <p>What's the preferred way to create the front end for the user? I can customize Solr/browse but I'd rather use Rails to build the site (simply because I'm familiar with it) and would like to send a request with query data to Solr and get a response / array back to present to the user. </p>
  
  <p>Last but not least;
  If anyone has a good suggestion for a commercial product that provides this functionality, I'd like to hear it. I have no intention to reinvent the wheel, but my search did not lead me to much.</p>