public class LuceneLoaderCodeIndexer extends LuceneLoaderCode implements EntityIndexer
LuceneLoaderCode.Qualifier
analyzer_, CODING_SCHEME_ID_FIELD, CODING_SCHEME_NAME_FIELD, CODING_SCHEME_URI_VERSION_CODE_NAMESPACE_KEY_FIELD, CODING_SCHEME_URI_VERSION_KEY_FIELD, CODING_SCHEME_VERSION_FIELD, DOUBLE_METAPHONE_PREFIX, DOUBLE_METAPHONE_PROPERTY_VALUE_FIELD, doubleMetaphoneEnabled_, ENTITY_UID_FIELD, generator_, isParent, lexGridWhiteSpaceIndexSet, LITERAL_AND_REVERSE_PREFIX, LITERAL_AND_REVERSE_PROPERTY_VALUE_FIELD, LITERAL_PREFIX, LITERAL_PROPERTY_VALUE_FIELD, literalAnalyzer, logger, NORM_PREFIX, NORM_PROPERTY_VALUE_FIELD, normEnabled_, PROPERTY_VALUE_FIELD, QUALIFIER_NAME_VALUE_SPLIT_TOKEN, REVERSE_PREFIX, REVERSE_PROPERTY_VALUE_FIELD, STEMMING_PREFIX, STEMMING_PROPERTY_VALUE_FIELD, stemmingEnabled_, STRING_TOKENIZER_TOKEN, UNIQUE_ID, UNTOKENIZED_LOWERCASE_PROPERTY_VALUE_FIELD, useCompoundFile_
Constructor and Description |
---|
LuceneLoaderCodeIndexer()
Instantiates a new lucene loader code indexer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrentIndexVersion()
Gets the current index version.
|
protected Presentation |
getDefaultPresentation(Entity entity) |
LexEvsIndexFormatVersion |
getIndexerFormatVersion() |
EntityDao |
getLuceneEntityDao() |
SystemResourceService |
getSystemResourceService()
Gets the system resource service.
|
SystemVariables |
getSystemVariables()
Gets the system variables.
|
java.util.List<org.apache.lucene.document.Document> |
indexEntity(java.lang.String codingSchemeUri,
java.lang.String codingSchemeVersion,
Entity entity)
Index entity.
|
protected org.apache.lucene.document.Document |
indexEntity(java.lang.String codingSchemeUri,
java.lang.String codingSchemeVersion,
Entity entity,
Property prop)
Index entity.
|
protected LuceneLoaderCode.Qualifier[] |
propertyQualifiersToQualifiers(PropertyQualifier[] qualifiers)
Property qualifiers to qualifiers.
|
void |
setCurrentIndexVersion(java.lang.String currentIndexVersion)
Sets the current index version.
|
void |
setLuceneEntityDao(EntityDao luceneEntityDao) |
void |
setSystemResourceService(SystemResourceService systemResourceService)
Sets the system resource service.
|
void |
setSystemVariables(SystemVariables systemVariables)
Sets the system variables.
|
protected java.lang.String[] |
sourceToString(Source[] sources)
Source to string.
|
addEntity, createCodingSchemeUriVersionCodeNamespaceKey, createCodingSchemeUriVersionKey, createParentDocument, getAnalyzer, getAnaylzer, initIndexes, reverseTermsInPropertyValue, setLuceneEntityDao
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnalyzer
public LuceneLoaderCodeIndexer()
public java.util.List<org.apache.lucene.document.Document> indexEntity(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, Entity entity)
indexEntity
in interface EntityIndexer
codingSchemeUri
- the coding scheme uricodingSchemeVersion
- the coding scheme versionentity
- the entityprotected Presentation getDefaultPresentation(Entity entity)
protected org.apache.lucene.document.Document indexEntity(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, Entity entity, Property prop) throws java.lang.Exception
codingSchemeUri
- the coding scheme uricodingSchemeVersion
- the coding scheme versionentity
- the entityprop
- the propjava.lang.Exception
- the exceptionprotected LuceneLoaderCode.Qualifier[] propertyQualifiersToQualifiers(PropertyQualifier[] qualifiers)
qualifiers
- the qualifiersprotected java.lang.String[] sourceToString(Source[] sources)
sources
- the sourcespublic SystemResourceService getSystemResourceService()
public void setSystemResourceService(SystemResourceService systemResourceService)
systemResourceService
- the new system resource servicepublic SystemVariables getSystemVariables()
public void setSystemVariables(SystemVariables systemVariables)
systemVariables
- the new system variablespublic EntityDao getLuceneEntityDao()
getLuceneEntityDao
in class LuceneLoaderCode
public void setLuceneEntityDao(EntityDao luceneEntityDao)
public void setCurrentIndexVersion(java.lang.String currentIndexVersion)
currentIndexVersion
- the new current index versionpublic java.lang.String getCurrentIndexVersion()
public LexEvsIndexFormatVersion getIndexerFormatVersion()
getIndexerFormatVersion
in interface EntityIndexer