Currently in oak-lucene where ever call is made to Lucene it passes Version.LUCENE_47 as hardcoded version. To enable easier upgrade of Lucene and hence change of defaults for fresh setup this version should be instead based on IndexFormatVersion.
- For IndexFormatVersion set to V2 (current default) - Lucene version used is LUCENE_47
- For IndexFormatVersion set to V3 (proposed) - Lucene version used would be per Lucene library version
If the index is reindexed then it would automatically be updated to the latest revision