return false;
}
}
private Version getLuceneMatchVersion(SearchConfiguration cfg) {
Version version;
String tmp = cfg.getProperty( Environment.LUCENE_MATCH_VERSION );
if ( StringHelper.isEmpty( tmp ) ) {
log.recommendConfiguringLuceneVersion();
version = Environment.DEFAULT_LUCENE_MATCH_VERSION;
}
else {
try {
version = Version.valueOf( tmp );
if ( log.isDebugEnabled() ) {
log.debug( "Setting Lucene compatibility to Version " + version.name() );
}
}
catch ( IllegalArgumentException e ) {
StringBuilder msg = new StringBuilder( tmp );
msg.append( " is a invalid value for the Lucene match version. Possible values are: " );