Package com.atlassian.confluence.search
Enum Class ReIndexOption
- All Implemented Interfaces:
ReIndexSupport<Object>,Serializable,Comparable<ReIndexOption>,Constable
Deprecated.
since 10.1.0. Use ReIndexOption from com.atlassian.confluence.api.service.index instead if possible.
Options for reindexing operations in Confluence.
NB when adding options, also add to the metric tags in
LuceneFullReindexManager- Since:
- 5.10
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Attachment onlyDeprecated.All content except those others specifically listed below - e.g.Deprecated.User only -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSet<ReIndexOption> deserialise(Collection<String> options, boolean reindexingSite) Deprecated.static EnumSet<ReIndexOption> Deprecated.This is only for site reindexingstatic EnumSet<ReIndexOption> fullReindex(boolean reindexingSite) Deprecated.Deprecated.Get the class filter predicate for this reindex option.Deprecated.Get the search query for deleting documents during reindexing.getDeleteQuery(Optional<String> spaceKey) Deprecated.Get the search query for deleting documents during reindexing within a specific space.getHandles(SearchableDao dao) Deprecated.Get handles for reindexing.getHandles(SearchableDao dao, Optional<String> spaceKey) Deprecated.Get handles for reindexing within a specific space.Deprecated.getThreadCount(JvmSystemResources jvmRuntime) Deprecated.Get the number of threads to use for reindexing with specific JVM resources.static booleanisFullReindex(Set<ReIndexOption> options) Deprecated.static ReIndexOptionDeprecated.Returns the enum constant of this class with the specified name.static ReIndexOption[]values()Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.atlassian.confluence.search.ReIndexSupport
getEntityClass
-
Enum Constant Details
-
CONTENT_ONLY
Deprecated.All content except those others specifically listed below - e.g. attachments or users -
ATTACHMENT_ONLY
Deprecated.Attachment only -
USER_ONLY
Deprecated.User only
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getDeleteQuery
Deprecated.Description copied from interface:ReIndexSupportGet the search query for deleting documents during reindexing.- Specified by:
getDeleteQueryin interfaceReIndexSupport<Object>- Returns:
- the delete query
-
getDeleteQuery
Deprecated.Description copied from interface:ReIndexSupportGet the search query for deleting documents during reindexing within a specific space.- Specified by:
getDeleteQueryin interfaceReIndexSupport<Object>- Parameters:
spaceKey- the space key to limit the deletion to- Returns:
- the delete query
-
getThreadCount
Deprecated. -
getThreadCount
Deprecated.Description copied from interface:ReIndexSupportGet the number of threads to use for reindexing with specific JVM resources.- Specified by:
getThreadCountin interfaceReIndexSupport<Object>- Parameters:
jvmRuntime- the JVM system resources- Returns:
- the thread count
-
getClassFilter
Deprecated.Description copied from interface:ReIndexSupportGet the class filter predicate for this reindex option.- Specified by:
getClassFilterin interfaceReIndexSupport<Object>- Returns:
- predicate to filter classes
-
getHandles
Deprecated.Description copied from interface:ReIndexSupportGet handles for reindexing within a specific space.- Specified by:
getHandlesin interfaceReIndexSupport<Object>- Parameters:
dao- the searchable DAOspaceKey- the space key to limit to- Returns:
- list of hibernate handles
-
getHandles
Deprecated.Description copied from interface:ReIndexSupportGet handles for reindexing.- Specified by:
getHandlesin interfaceReIndexSupport<Object>- Parameters:
dao- the searchable DAO- Returns:
- list of hibernate handles
-
isFullReindex
Deprecated. -
fullReindex
Deprecated.This is only for site reindexing -
fullReindex
Deprecated.- Parameters:
reindexingSite- true if Confluence is re-indexing the whole site- Returns:
- the relevant options
- Since:
- 8.2.0
-
deserialise
public static EnumSet<ReIndexOption> deserialise(Collection<String> options, boolean reindexingSite) Deprecated.- Parameters:
options- a collection of options is their serialised form- Returns:
- an
EnumSetofReIndexOption - Since:
- 8.2.0
-