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 CoreControl
protected ExecutionErrorAccumulator
protected List<EntityAliasType>
protected List<EntityAttribute>
protected EntityType
protected Index
protected IndexControl
protected IndexStatus
protected org.apache.lucene.index.IndexWriter
protected Language
protected org.apache.commons.logging.Log
protected TagControl
protected WorkflowControl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addEntityToIndex
(EntityInstance entityInstance, BE baseEntity) void
close()
protected void
protected abstract org.apache.lucene.document.Document
convertToDocument
(EntityInstance entityInstance, BE item) void
protected org.apache.lucene.analysis.Analyzer
protected abstract BE
getEntity
(EntityInstance entityInstance) getIndex()
protected org.apache.lucene.document.Document
newDocumentWithEntityInstanceFields
(EntityInstance entityInstance, BasePK basePK) void
open()
protected void
openIndexWriter
(org.apache.lucene.analysis.Analyzer analyzer) Create a Lucene IndexWriter.protected void
removeEntityFromIndex
(BE baseEntity) void
updateIndex
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-