Error: Invalid value 'explicit' for echoParams parameter, use 'EXPLICIT' or
'ALL'
---------------------------------------------------------------------------------
Key: SOLR-2281
URL: https://issues.apache.org/jira/browse/SOLR-2281
Project: Solr
Issue Type: Bug
Affects Versions: 1.4.1
Reporter: Başar Aykut
Invalid value 'explicit' for echoParams paramet2er, use 'EXPLICIT' or 'ALL'
error is displayed when the default config file is used. In the config file
echoParams value is 'explicit' , however for the Turkish locale uppercase of
the word 'explicit' is EXPLİCİT and this doesn't match the word 'EXPLICIT'.
toUpperCase(Locale.ENGLISH) can be used instead of using it with the default
locale:
{code}
public enum EchoParamStyle {
EXPLICIT,
ALL,
NONE;
public static EchoParamStyle get( String v ) {
if( v != null ) {
v = v.toUpperCase();
if( v.equals( "EXPLICIT" ) ) {
return EXPLICIT;
}
if( v.equals( "ALL") ) {
return ALL;
}
if( v.equals( "NONE") ) { // the same as nothing...
return NONE;
}
}
return null;
}
};
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]