/** {@inheritDoc} */ @Override public void removeAll(final SearchIndexDefinition indexDefinition, final ListFilter listFilter) { try (AnalyticsTracker tracker = analyticsManager.startTracker(ANALYTICS_TYPE, indexDefinition.getName() + "/removeAll")) { searchServicesPlugin.remove(indexDefinition, listFilter); tracker.markAsSucceeded(); } }
/** {@inheritDoc} */ @Override public long count(final SearchIndexDefinition indexDefinition) { try (AnalyticsTracker tracker = analyticsManager.startTracker(ANALYTICS_TYPE, indexDefinition.getName() + "/count")) { final long result = searchServicesPlugin.count(indexDefinition); tracker.markAsSucceeded(); return result; } }