Class BaseIndexer<BE extends BaseEntity>
java.lang.Object
com.echothree.util.server.control.BaseLogic
com.echothree.model.control.index.server.indexer.BaseIndexer<BE>
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
ContactMechanismIndexer,ContentCategoryIndexer,EntityListItemIndexer,EntityTypeIndexer,ForumMessageIndexer,HarmonizedTariffScheduleCodeIndexer,ItemIndexer,OfferIndexer,PartyIndexer,SecurityRoleGroupIndexer,SecurityRoleIndexer,UseIndexer,UseTypeIndexer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CoreControlprotected ExecutionErrorAccumulatorprotected List<EntityAliasType>protected List<EntityAttribute>protected EntityTypeprotected Indexprotected IndexControlprotected IndexStatusprotected org.apache.lucene.index.IndexWriterprotected Languageprotected org.apache.commons.logging.Logprotected TagControlprotected WorkflowControl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddEntityToIndex(EntityInstance entityInstance, BE baseEntity) voidclose()protected voidprotected abstract org.apache.lucene.document.DocumentconvertToDocument(EntityInstance entityInstance, BE item) voidprotected org.apache.lucene.analysis.Analyzerprotected abstract BEgetEntity(EntityInstance entityInstance) getIndex()protected org.apache.lucene.document.DocumentnewDocumentWithEntityInstanceFields(EntityInstance entityInstance, BasePK basePK) voidopen()protected voidopenIndexWriter(org.apache.lucene.analysis.Analyzer analyzer) Create a Lucene IndexWriter.protected voidremoveEntityFromIndex(BE baseEntity) voidupdateIndex(EntityInstance entityInstance) Methods inherited from class com.echothree.util.server.control.BaseLogic
addExecutionError, addSecurityMessage, getEntityInstanceByBaseEntity, getEntityInstanceByBasePK, getSession, handleExecutionError, handleSecurityMessage, hasExecutionErrors
-
Field Details
-
coreControl
-
indexControl
-
tagControl
-
workflowControl
-
log
-
eea
-
index
-
language
-
entityType
-
indexStatus
-
entityAliasTypes
-
entityAttributes
-
tagScopes
-
indexWriter
-
-
Constructor Details
-
BaseIndexer
-
-
Method Details
-
getIndex
-
open
-
getEntityType
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
newDocumentWithEntityInstanceFields
protected org.apache.lucene.document.Document newDocumentWithEntityInstanceFields(EntityInstance entityInstance, BasePK basePK) -
openIndexWriter
Create a Lucene IndexWriter. -
closeIndexWriter
-
forceReindex
-
getAnalyzer
-
getEntity
-
convertToDocument
protected abstract org.apache.lucene.document.Document convertToDocument(EntityInstance entityInstance, BE item) -
addEntityToIndex
- Throws:
IOException
-
removeEntityFromIndex
- Throws:
IOException
-
updateIndex
-