Description
Currently LuceneIndexInfoProvider opens a DirectoryReader via OakDirectory which leads to very high memory consumption due to current design of OakDirectory (see OAK-3132).
As we just need to determine the numDocs we can directly use the SegmentInfos to determine this information in a more efficient manner and avoid creating whole DirectoryReader