public interface InternalIndexingService
Modifier and Type | Method and Description |
---|---|
void |
conditionalUpdateWithVersion(org.apache.lucene.document.Document issueDocument,
Collection<org.apache.lucene.document.Document> commentDocuments,
Collection<org.apache.lucene.document.Document> changeHistoryDocuments,
Collection<org.apache.lucene.document.Document> worklogDocuments)
Index an issue document with its related documents conditionally based on the entity ids and the versions
which are resolved by
IndexDirectoryFactory.Name.getEntityIdFromDocument(Document) and
IndexDirectoryFactory.Name.getEntityVersionFromDocument(Document) |
void |
conditionalUpdateWithVersion(IndexDirectoryFactory.Name indexName,
org.apache.lucene.document.Document document)
Index a
Document conditionally based on the entity id and the version which are resolved by
IndexDirectoryFactory.Name.getEntityIdFromDocument(Document) and
IndexDirectoryFactory.Name.getEntityVersionFromDocument(Document) |
ManagedIndexSearcher |
getEntitySearcher(IndexDirectoryFactory.Name index)
Get an
IndexSearcher that can be used to search the index specified
by the IndexDirectoryFactory.Name . |
void |
unconditionallyReindexIssuesAndRelatedEntitiesLocally(Collection<Issue> issueObjects)
Unconditionally updates issues and all related entities indexes: comments, worklogs and changeHistory.
|
void conditionalUpdateWithVersion(IndexDirectoryFactory.Name indexName, org.apache.lucene.document.Document document)
Document
conditionally based on the entity id and the version which are resolved by
IndexDirectoryFactory.Name.getEntityIdFromDocument(Document)
and
IndexDirectoryFactory.Name.getEntityVersionFromDocument(Document)
indexName
- define the target indexdocument
- the document needs to be indexedvoid conditionalUpdateWithVersion(org.apache.lucene.document.Document issueDocument, Collection<org.apache.lucene.document.Document> commentDocuments, Collection<org.apache.lucene.document.Document> changeHistoryDocuments, Collection<org.apache.lucene.document.Document> worklogDocuments)
IndexDirectoryFactory.Name.getEntityIdFromDocument(Document)
and
IndexDirectoryFactory.Name.getEntityVersionFromDocument(Document)
issueDocument
- issue document needs to be indexedcommentDocuments
- issue's comment documentschangeHistoryDocuments
- issue's history change documentsworklogDocuments
- issue's worklog documents@Internal void unconditionallyReindexIssuesAndRelatedEntitiesLocally(Collection<Issue> issueObjects)
issueObjects
- issues need to be re-indexed unconditionally locallyManagedIndexSearcher getEntitySearcher(IndexDirectoryFactory.Name index)
IndexSearcher
that can be used to search the index specified
by the IndexDirectoryFactory.Name
.index
- Index for which a searcher should be returnedCopyright © 2002-2021 Atlassian. All Rights Reserved.