(EntryWriter ew)
| 945 | public int getFormUploadLimitKB() { |
| 946 | return formUploadLimitKB; |
| 947 | } |
| 948 | |
| 949 | @Override |
| 950 | public void writeMap(EntryWriter ew) throws IOException { |
| 951 | if (znodeVersion > -1) { |
| 952 | ew.put(ZNODEVER, znodeVersion); |
| 953 | } |
| 954 | if (luceneMatchVersion != null) { |
| 955 | ew.put(IndexSchema.LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion.toString()); |
| 956 | } |
| 957 | |
| 958 | ew.put("updateHandler", getUpdateHandlerInfo()); |
| 959 | ew.put( |
| 960 | "query", |
| 961 | (MapWriter) |
| 962 | m -> { |
| 963 | m.put("useFilterForSortedQuery", useFilterForSortedQuery); |
| 964 | m.put("queryResultWindowSize", queryResultWindowSize); |
| 965 | m.put("queryResultMaxDocsCached", queryResultMaxDocsCached); |
| 966 | m.put("enableLazyFieldLoading", enableLazyFieldLoading); |
| 967 | m.put("maxBooleanClauses", booleanQueryMaxClauseCount); |
| 968 | m.put(MIN_PREFIX_QUERY_TERM_LENGTH, prefixQueryMinPrefixLength); |
| 969 | |
| 970 | addCacheConfig( |
| 971 | m, |
| 972 | filterCacheConfig, |
| 973 | queryResultCacheConfig, |
| 974 | documentCacheConfig, |
| 975 | fieldValueCacheConfig, |
| 976 | featureVectorCacheConfig); |
| 977 | }); |
| 978 | for (SolrPluginInfo plugin : plugins) { |
| 979 | List<PluginInfo> infos = getPluginInfos(plugin.clazz.getName()); |
| 980 | if (infos == null || infos.isEmpty()) continue; |
| 981 | String tag = plugin.getCleanTag(); |
| 982 | tag = tag.replace("/", ""); |
| 983 | if (plugin.options.contains(PluginOpts.REQUIRE_NAME)) { |
| 984 | LinkedHashMap<String, Object> items = new LinkedHashMap<>(); |
| 985 | for (PluginInfo info : infos) { |
| 986 | // TODO remove after fixing https://issues.apache.org/jira/browse/SOLR-13706 |
| 987 | if (info.type.equals("searchComponent") && info.name.equals("highlight")) continue; |
| 988 | items.put(info.name, info); |
| 989 | } |
| 990 | for (Map.Entry<String, Map<String, Object>> e : |
| 991 | overlay.getNamedPlugins(plugin.tag).entrySet()) { |
| 992 | items.put(e.getKey(), e.getValue()); |
| 993 | } |
| 994 | ew.put( |
| 995 | tag, |
| 996 | (MapWriter) |
| 997 | m -> { |
| 998 | for (Map.Entry<String, Object> item : items.entrySet()) { |
| 999 | m.put(item.getKey(), item.getValue()); |
| 1000 | } |
| 1001 | }); |
| 1002 | } else { |
| 1003 | if (plugin.options.contains(MULTI_OK)) { |
| 1004 | ew.put(tag, infos); |
nothing calls this directly
no test coverage detected