Hi there,
while trying to use {code:java} properties.put(Environment.INDEX_UNINVERTING_ALLOWED, true); {code}
I have discovered that {noformat} org.hibernate.search.util.configuration.impl.ConfigurationParseHelper#getBooleanValue {noformat} uses {noformat} Properties.getProperty {noformat} * which returns null when the property value is not a string (for whatever reason...) * .
In my case, this has the effect that using a boolean "true" INDEX_UNINVERTING_ALLOWED is not recognized and an exception is thrown instead as this is now the default. Using a string based
{code:java} properties.put(Environment.INDEX_UNINVERTING_ALLOWED,"true"); {code}
IMHO, this is a pitfall that could be easily avoided by also allowing boolean values. |
|