Package com.atlassian.jira.search.lucene
Class LuceneIndexAccessorFactory
java.lang.Object
com.atlassian.jira.search.lucene.LuceneIndexAccessorFactory
- All Implemented Interfaces:
IndexAccessorFactory,IndexAccessorRegistry
public class LuceneIndexAccessorFactory
extends Object
implements IndexAccessorFactory, IndexAccessorRegistry
Creates a
LuceneIndexAccessor-
Field Summary
Fields inherited from interface com.atlassian.jira.search.index.IndexAccessorRegistry
ISSUES_INDEX -
Constructor Summary
ConstructorsConstructorDescriptionLuceneIndexAccessorFactory(IndexSearcherProvider indexSearcherProvider, LuceneQueryMapperRegistry queryMapperRegistry, LuceneQueryModifier luceneQueryModifier, LuceneAggregatorRegistry luceneAggregatorRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates a newIndexAccessorfor the given schema.Get index accessor for the issues index.
-
Constructor Details
-
LuceneIndexAccessorFactory
public LuceneIndexAccessorFactory(IndexSearcherProvider indexSearcherProvider, LuceneQueryMapperRegistry queryMapperRegistry, LuceneQueryModifier luceneQueryModifier, LuceneAggregatorRegistry luceneAggregatorRegistry)
-
-
Method Details
-
afterInstantiation
- Throws:
IndexOperationException
-
create
Description copied from interface:IndexAccessorFactoryCreates a newIndexAccessorfor the given schema. It will create the index if it does not exist.- Specified by:
createin interfaceIndexAccessorFactory- Parameters:
indexName- the name of the index- Returns:
- a new accessor for the index
- Throws:
IndexOperationException- when index failed to be created
-
getIssuesIndexAccessor
Description copied from interface:IndexAccessorRegistryGet index accessor for the issues index.- Specified by:
getIssuesIndexAccessorin interfaceIndexAccessorRegistry- Returns:
- the index accessor for the issues index
-