Package com.atlassian.confluence.search
Class ReIndexUtils
java.lang.Object
com.atlassian.confluence.search.ReIndexUtils
Utility class containing shared constants and static methods for ReIndexOption operations.
This class provides common functionality that was previously in the ReIndexOption enum.
- Since:
- 10.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Function<String, SearchQuery> static final SearchQuerystatic final Function<String, SearchQuery> static final SearchQuerystatic final SearchQuery -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSet<ReIndexOption> fromApiEnumSet(EnumSet<ReIndexOption> apiOptions, boolean reindexingSite) static Set<ReIndexSupport> Get the default full reindex options.static Set<ReIndexSupport> fullReindex(boolean reindexingSite) Get the full reindex options, optionally excluding users for site reindexing.static booleanisFullReindex(Set<ReIndexSupport> options) Check if the given set of options represents a full reindex.
-
Field Details
-
ATTACHMENT_ONLY_QUERY
-
USER_ONLY_QUERY
-
CONTENT_ONLY_QUERY
-
ATTACHMENT_ONLY_IN_SPACE_QUERY
-
CONTENT_ONLY_IN_SPACE_QUERY
-
USER_CLASS
-
ATTACHMENT_CLASS
-
CONTENT_CLASSES
-
-
Method Details
-
isFullReindex
Check if the given set of options represents a full reindex.- Parameters:
options- the set of ReIndexOption values- Returns:
- true if this represents a full reindex
-
fullReindex
Get the default full reindex options.- Returns:
- Set containing all reindex options
-
fullReindex
Get the full reindex options, optionally excluding users for site reindexing.- Parameters:
reindexingSite- true if Confluence is re-indexing the whole site- Returns:
- Set containing appropriate reindex options
-
fromApiEnumSet
public static EnumSet<ReIndexOption> fromApiEnumSet(EnumSet<ReIndexOption> apiOptions, boolean reindexingSite)
-