public enum SearchResultType extends Enum<SearchResultType>
Represents a confluence search result type.
Introducing types allows us to distinguish between different results in the index and allow us to target certain results for specific operations.
For example, when a user has updated a page, we can remove the associated CONTENT
result from the index and add a new one
(without affecting results of a different type).
Enum Constant and Description |
---|
CHANGE
A result that represents an edit/change
|
CONTENT
A result that contains the content/body of a confluence entity (allowing searching against the full text of its body for example)
|
Modifier and Type | Method and Description |
---|---|
static SearchResultType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchResultType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchResultType CONTENT
public static final SearchResultType CHANGE
public static SearchResultType[] values()
for (SearchResultType c : SearchResultType.values()) System.out.println(c);
public static SearchResultType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2003–2016 Atlassian. All rights reserved.