DS-1970 to many open files exception

 when update lucene index
Merge pull request #519 from rradillen/patch-5

DS-1970 to many open files exception