Class IssuePropertySearchExtractor
java.lang.Object
com.atlassian.jira.issue.index.indexers.impl.IssuePropertySearchExtractor
- All Implemented Interfaces:
EntitySearchExtractor<Issue>
,IssueSearchExtractor
@Deprecated(since="10.4",
forRemoval=true)
public class IssuePropertySearchExtractor
extends Object
implements IssueSearchExtractor
Deprecated, for removal: This API element is subject to removal in a future version.
No replacement just yet, will be implemented with DCDORA-958
Search extractor that constructs lucene document fields based on entities assigned to particular issue and their
configuration as defined by
IndexDocumentConfiguration
- Since:
- v6.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.index.EntitySearchExtractor
EntitySearchExtractor.Context<T>
-
Constructor Summary
ConstructorsConstructorDescriptionIssuePropertySearchExtractor
(JsonEntityPropertyManager jsonEntityPropertyManager, PluginIndexConfigurationManager entityPropertyIndexDocumentManager, DateTimeFormatterFactory dateTimeFormatterFactory, SearchExtractorRegistrationManager searchExtractorRegistrationManager, DoubleConverter doubleConverter) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.lucene.index.IndexableField>
documentConfigurationToFields
(Issue issue, IndexDocumentConfiguration indexDocumentConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.List<org.apache.lucene.index.IndexableField>
extractConfigurationToFields
(Object jsonEntityProperty, String key, IndexDocumentConfiguration.ExtractConfiguration extractConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.indexEntity
(EntitySearchExtractor.Context<Issue> ctx, org.apache.lucene.document.Document doc) Deprecated, for removal: This API element is subject to removal in a future version.Extracts fields from document provided byEntitySearchExtractor.Context
and adds them to document.List<org.apache.lucene.index.IndexableField>
keyConfigurationToFields
(Long issueId, Map<String, EntityProperty> entityProperties, IndexDocumentConfiguration.KeyConfiguration keyConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
IssuePropertySearchExtractor
public IssuePropertySearchExtractor(JsonEntityPropertyManager jsonEntityPropertyManager, PluginIndexConfigurationManager entityPropertyIndexDocumentManager, DateTimeFormatterFactory dateTimeFormatterFactory, SearchExtractorRegistrationManager searchExtractorRegistrationManager, DoubleConverter doubleConverter) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
indexEntity
public Set<String> indexEntity(EntitySearchExtractor.Context<Issue> ctx, org.apache.lucene.document.Document doc) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:EntitySearchExtractor
Extracts fields from document provided byEntitySearchExtractor.Context
and adds them to document. All the fields names that were added to documents as indexed to document must be returned as output of this method- Specified by:
indexEntity
in interfaceEntitySearchExtractor<Issue>
- Parameters:
ctx
- context for this operationdoc
- lucene document to which values should be added- Returns:
- ids of the document fields that were added by call of this method
-
documentConfigurationToFields
public List<org.apache.lucene.index.IndexableField> documentConfigurationToFields(Issue issue, IndexDocumentConfiguration indexDocumentConfiguration) Deprecated, for removal: This API element is subject to removal in a future version. -
keyConfigurationToFields
public List<org.apache.lucene.index.IndexableField> keyConfigurationToFields(Long issueId, Map<String, EntityProperty> entityProperties, IndexDocumentConfiguration.KeyConfiguration keyConfiguration) Deprecated, for removal: This API element is subject to removal in a future version. -
extractConfigurationToFields
public List<org.apache.lucene.index.IndexableField> extractConfigurationToFields(Object jsonEntityProperty, String key, IndexDocumentConfiguration.ExtractConfiguration extractConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.
-