This is a quick example demonstrating how easy it is to index documents stored in a file system. The example should work fine in both Railo (3.2 and up) and ColdFusion (9 and up).
Railo uses Apache Lucene, and ColdFusion uses Solr (which in turn uses Apache Lucene) for document indexing.
Download the gist and get it running in your CFML engine of choice. Then grab yourself a bunch of documents, and put them in the documents folder. You can create a nested directory structure to store the documents if you wish.
* /collections-list.cfm will list all current collection
* /collections-setup.cfm will setup the collection and index document content (you can customise the values in Application.cfc beforehand if you like)
* /collections-delete.cfm will delete the current collection
* /index.cfm so that you can perform a search
Note:if you can't get a search to work, try searching on *