java.lang.Object | |
↳ | com.atlassian.confluence.search.lucene.ChangeDocumentIndexPolicy |
Policy that defines what com.atlassian.bonnie.Searchables should be indexed as change documents.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ChangeDocumentIndexPolicy.PolicyCheckResult |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Defines the conditions which must be met before a change document will be constructed for the specified searchable.
| |||||||||||
Returns true if this searchable should be indexed as a change, false otherwise.
| |||||||||||
Whether we should unindex this searchable.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Defines the conditions which must be met before a change document will be constructed for the specified searchable.
These are:
ContentTypeAware
Versioned
, the latest version must return true for isIndexable()
.searchable | the searchable |
---|
Returns true if this searchable should be indexed as a change, false otherwise.
searchable | the searchable |
---|
Whether we should unindex this searchable. The condition to unindex a searchable is more lenient than indexing, as our main objective here is to ensure we are queuing a list of unindex jobs that make sense. It is sufficient in this case to just check that changes are indexed for the persistent class of the searchable. (The criteria we use for indexing a searchable cannot be re-used for unindexing, since the deletion of a searchable may change its state causing it to fail this criteria. Failing our indexing criteria is no reason at all to not unindex.
searchable | the searchable |
---|