This commit adds a version verifica†ion to ensure the lucene version in the docs is up to date.
The Lucene version constants for 5.4.1 and 5.5.0 are wrong, they are listed as 6.5.0 instead of 6.5.1. This commit fixes these issues, and adds a test to ensure that this does not happen again. Relates #24923