Make lucene index directory location configurable. New test for lucene document of a rim.