mirror of https://github.com/apache/lucene.git
SOLR-9557: optimize splitsmart
This commit is contained in:
parent
f6622ef374
commit
208e2bc66f
|
@ -183,7 +183,8 @@ public class SolrPluginUtils {
|
|||
private static SolrParams applyParamSet(RequestParams requestParams,
|
||||
SolrParams defaults, String paramSets, String type) {
|
||||
if (paramSets == null) return defaults;
|
||||
for (String name : StrUtils.splitSmart(paramSets, ',')) {
|
||||
List<String> paramSetList = paramSets.indexOf(',') == -1 ? singletonList(paramSets) : StrUtils.splitSmart(paramSets, ',');
|
||||
for (String name : paramSetList) {
|
||||
RequestParams.VersionedParams params = requestParams.getParams(name, type);
|
||||
if (params == null) return defaults;
|
||||
if (type.equals(DEFAULTS)) {
|
||||
|
|
Loading…
Reference in New Issue