MCPcopy Create free account
hub / github.com/apache/solr / initSearcher

Method initSearcher

solr/core/src/java/org/apache/solr/core/SolrCore.java:1255–1275  ·  view source on GitHub ↗
(SolrCore prev)

Source from the content-addressed store, hash-verified

1253 coreMetricManager.registerMetricProducer(newUpdateHandler, Attributes.empty());
1254 }
1255 infoRegistry.put("updateHandler", newUpdateHandler);
1256 return newUpdateHandler;
1257 }
1258
1259 /**
1260 * Initializes the core's {@link SolrCoreMetricManager} with a given configuration. If metric
1261 * reporters are configured, they are also initialized for this core.
1262 *
1263 * @param config the given configuration
1264 * @return an instance of {@link SolrCoreMetricManager}
1265 */
1266 private SolrCoreMetricManager initCoreMetricManager(SolrConfig config) {
1267 SolrCoreMetricManager coreMetricManager = new SolrCoreMetricManager(this);
1268 return coreMetricManager;
1269 }
1270
1271 @Override
1272 public void initializeMetrics(SolrMetricsContext parentContext, Attributes attributes) {
1273 Attributes baseSearcherAttributes =
1274 Attributes.builder()
1275 .putAll(attributes)
1276 .put(CATEGORY_ATTR, Category.SEARCHER.toString())
1277 .build();
1278 Attributes baseGaugeCoreAttributes =

Callers 1

SolrCoreMethod · 0.95

Calls 7

getSearcherMethod · 0.95
getUpdateHandlerMethod · 0.80
getMethod · 0.65
getIndexWriterMethod · 0.45
getSolrCoreStateMethod · 0.45
newReaderMethod · 0.45
decrefMethod · 0.45

Tested by

no test coverage detected