Backwards-compatible implementation to match {@link org.apache.lucene.util.Version#LUCENE_36}