private static void updateStatsUndefinedResults( LocalizableMessageBuilder debugMessage, Index index) { if (!index.isTrusted()) { debugMessage.append(INFO_INDEX_FILTER_INDEX_NOT_TRUSTED.get(index.getName())); } else if (index.isRebuildRunning()) { debugMessage.append(INFO_INDEX_FILTER_INDEX_REBUILD_IN_PROGRESS.get(index.getName())); } else { debugMessage.append(INFO_INDEX_FILTER_INDEX_LIMIT_EXCEEDED.get(index.getName())); } }
private void setTrusted(Index index, boolean trusted) { if (index != null) { index.setTrusted(null, trusted); } }