Unless we expose the deprecated Lucene types on public APIs, we should stop using them.
There are several categories of such bad usage in the code base, so I'll create sub tasks to split this work up.
The test code needs to be polished as well, as the goal is to make it easier to eventually migrate to newer Lucene versions.
Moving out of the 5.8.x release train: we've done many good steps already, there's no need to have them all.
When running with lucene >= 6.0.0 (till the lastest 7.0.0)
Runs just fine with lucene 5.5.4.
Deprecated Lucene method has been remove since Lucene-core 6.0.0. It says,
Thanks for the report, but this specific fix has already been implemented as part of HSEARCH-2811, and is present in the latest version of Hibernate Search (5.8.1.Final).
You can try again with Hibernate Search 5.8.1.Final, but be aware that we've never tested Hibernate Search with Lucene 6 and are planning on upgrading in Hibernate Search 6 only (we'll probably upgrade directly to Lucene 7).
Can't wait for Hibernate 6!