|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SearchResultType>
com.atlassian.confluence.search.v2.SearchResultType
public 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 Summary | |
|---|---|
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) |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SearchResultType CONTENT
public static final SearchResultType CHANGE
| Method Detail |
|---|
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 name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||