com.atlassian.jira.issue.index.indexers.impl
Class IssuePropertySearchExtractor

java.lang.Object
  extended by com.atlassian.jira.issue.index.indexers.impl.IssuePropertySearchExtractor
All Implemented Interfaces:
EntitySearchExtractor<Issue>, IssueSearchExtractor

public class IssuePropertySearchExtractor
extends Object
implements IssueSearchExtractor

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
IssuePropertySearchExtractor(JsonEntityPropertyManager jsonEntityPropertyManager, PluginIndexConfigurationManager entityPropertyIndexDocumentManager, DateTimeFormatterFactory dateTimeFormatterFactory, SearchExtractorRegistrationManager searchExtractorRegistrationManager, DoubleConverter doubleConverter)
           
 
Method Summary
 Set<String> indexEntity(EntitySearchExtractor.Context<Issue> ctx, org.apache.lucene.document.Document doc)
          Extracts fields from document provided by EntitySearchExtractor.Context and adds them to document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssuePropertySearchExtractor

public IssuePropertySearchExtractor(JsonEntityPropertyManager jsonEntityPropertyManager,
                                    PluginIndexConfigurationManager entityPropertyIndexDocumentManager,
                                    DateTimeFormatterFactory dateTimeFormatterFactory,
                                    SearchExtractorRegistrationManager searchExtractorRegistrationManager,
                                    DoubleConverter doubleConverter)
Method Detail

indexEntity

public Set<String> indexEntity(EntitySearchExtractor.Context<Issue> ctx,
                               org.apache.lucene.document.Document doc)
Description copied from interface: EntitySearchExtractor
Extracts fields from document provided by EntitySearchExtractor.Context and adds them to document. All the filed names that were added to documents as indexed to document must be returned as output of this method

Specified by:
indexEntity in interface EntitySearchExtractor<Issue>
Parameters:
ctx - context for this operation
doc - lucene document to which values should be added
Returns:
ids of the document fields that were added by call of this method


Copyright © 2002-2014 Atlassian. All Rights Reserved.