More fixes around lucene and index commands.