Compass aim is to integrate with different data sources (different ORM
frameworks).
If you want to index file contents , It`s suited that use core lucene (with tika
to extraxt file contents).
there are some good examples and source codes here : http: // www . manning .
com/hatcher3/LIAsourcecode.zip