public class ChangeDocumentIndexPolicy extends Object
Searchable
s should be indexed as change documents.Modifier and Type | Class and Description |
---|---|
static class |
ChangeDocumentIndexPolicy.PolicyCheckResult |
Constructor and Description |
---|
ChangeDocumentIndexPolicy() |
Modifier and Type | Method and Description |
---|---|
static ChangeDocumentIndexPolicy.PolicyCheckResult |
buildFor(com.atlassian.bonnie.Searchable searchable)
Defines the conditions which must be met before a change document will be constructed for the specified searchable.
|
static boolean |
shouldIndex(com.atlassian.bonnie.Searchable searchable)
Returns true if this searchable should be indexed as a change, false otherwise.
|
static boolean |
shouldUnIndex(com.atlassian.bonnie.Searchable searchable)
Whether we should unindex this searchable.
|
public static ChangeDocumentIndexPolicy.PolicyCheckResult buildFor(com.atlassian.bonnie.Searchable searchable)
These are:
ContentTypeAware
Versioned
, the latest version must return true for Searchable.isIndexable()
.searchable
- the searchablepublic static boolean shouldIndex(com.atlassian.bonnie.Searchable searchable)
searchable
- the searchablepublic static boolean shouldUnIndex(com.atlassian.bonnie.Searchable searchable)
searchable
- the searchableCopyright © 2003–2017 Atlassian. All rights reserved.