Class LabelsCustomFieldIndexer
java.lang.Object
com.atlassian.jira.issue.index.indexers.impl.AbstractCustomFieldIndexer
com.atlassian.jira.dev.reference.plugin.searchers.LabelsCustomFieldIndexer
- All Implemented Interfaces:
FieldIndexer
A reference class that implements a custom field indexer
- Since:
- v4.3
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.index.indexers.impl.AbstractCustomFieldIndexer
customFieldFields inherited from interface com.atlassian.jira.issue.index.indexers.FieldIndexer
LABELS_NO_VALUE_INDEX_VALUE, NO_VALUE_INDEX_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionLabelsCustomFieldIndexer(FieldVisibilityManager fieldVisibilityManager, CustomField field) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDocumentFieldsNotSearchable(org.apache.lucene.document.Document doc, Issue issue, CustomFieldPrefetchedData prefetchedData) voidaddDocumentFieldsSearchable(org.apache.lucene.document.Document doc, Issue issue, CustomFieldPrefetchedData prefetchedData) Used to declare how the indexer handles nulls.Methods inherited from class com.atlassian.jira.issue.index.indexers.impl.AbstractCustomFieldIndexer
addDocumentFieldsNotSearchable, addDocumentFieldsSearchable, addIndex, addIndex, getDocumentFieldId, getId, isFieldVisibleAndInScope, isRelevantForIssue
-
Constructor Details
-
LabelsCustomFieldIndexer
-
-
Method Details
-
addDocumentFieldsSearchable
public void addDocumentFieldsSearchable(org.apache.lucene.document.Document doc, Issue issue, CustomFieldPrefetchedData prefetchedData) - Overrides:
addDocumentFieldsSearchablein classAbstractCustomFieldIndexer
-
addDocumentFieldsNotSearchable
public void addDocumentFieldsNotSearchable(org.apache.lucene.document.Document doc, Issue issue, CustomFieldPrefetchedData prefetchedData) - Overrides:
addDocumentFieldsNotSearchablein classAbstractCustomFieldIndexer
-
skipsIndexingNull
Description copied from interface:FieldIndexerUsed to declare how the indexer handles nulls.- Returns:
- true iff the indexer doesn't do anything when the field value is null
-