public class SourceAssertedValueSetSearchIndexService extends java.lang.Object implements AssertedValueSetSearchIndexService
Constructor and Description |
---|
SourceAssertedValueSetSearchIndexService() |
Modifier and Type | Method and Description |
---|---|
void |
addEntityToIndex(java.lang.String codingSchemeUri,
java.lang.String codingSchemeVersion,
Entity entity) |
void |
addEntityToIndex(java.lang.String codingSchemeUri,
java.lang.String codingSchemeVersion,
java.lang.String vsURI,
java.lang.String vsName,
Entity entity)
Adds an entity to the index targeted by source coding scheme and defined
further by the value set URI
|
void |
createIndex(AbsoluteCodingSchemeVersionReference ref) |
void |
deleteEntityFromIndex(java.lang.String codingSchemeUri,
java.lang.String codingSchemeVersion,
Entity entity) |
void |
deleteEntityFromIndex(java.lang.String codingSchemeUri,
java.lang.String codingSchemeVersion,
java.lang.String vsURI,
java.lang.String vsName,
Entity entity)
Deletes an entity to the index targeted by source coding scheme and defined
further by the value set URI
|
boolean |
doesIndexExist(AbsoluteCodingSchemeVersionReference reference) |
void |
dropIndex(AbsoluteCodingSchemeVersionReference reference) |
void |
dropIndexForAllValueSets(java.lang.String codingSchemeUri,
java.lang.String codingSchemeVersion) |
org.apache.lucene.analysis.Analyzer |
getAnalyzer() |
org.apache.lucene.document.Document |
getById(int id) |
org.apache.lucene.document.Document |
getById(java.util.Set<AbsoluteCodingSchemeVersionReference> codeSystemsToInclude,
int doc) |
ConcurrentMetaData |
getConcurrentMetaData() |
EntityIndexer |
getEntityIndexer() |
IndexCreator |
getIndexCreator() |
IndexDaoManager |
getIndexDaoManager() |
java.util.List<org.apache.lucene.search.ScoreDoc> |
query(java.util.Set<AbsoluteCodingSchemeVersionReference> codeSystemToInclude,
org.apache.lucene.search.Query query) |
void |
setConcurrentMetaData(ConcurrentMetaData concurrentMetaData) |
void |
setEntityIndexer(EntityIndexer entityIndexer) |
void |
setIndexCreator(IndexCreator indexCreator) |
void |
setIndexDaoManager(IndexDaoManager indexDaoManager) |
void |
updateIndexForEntity(java.lang.String codingSchemeUri,
java.lang.String codingSchemeVersion,
Entity entity) |
void |
updateIndexForEntity(java.lang.String codingSchemeUri,
java.lang.String codingSchemeVersion,
java.lang.String vsURI,
java.lang.String vsName,
Entity entity)
Updates an indexed entity by first deleting the old entity, then adding the
new entity
|
public SourceAssertedValueSetSearchIndexService()
public void updateIndexForEntity(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, Entity entity)
updateIndexForEntity
in interface SearchIndexService
public void addEntityToIndex(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, Entity entity)
addEntityToIndex
in interface SearchIndexService
public void deleteEntityFromIndex(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, Entity entity)
deleteEntityFromIndex
in interface SearchIndexService
public void updateIndexForEntity(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, java.lang.String vsURI, java.lang.String vsName, Entity entity)
AssertedValueSetSearchIndexService
updateIndexForEntity
in interface AssertedValueSetSearchIndexService
codingSchemeUri
- - source asserted value set source system uricodingSchemeVersion
- - source asserted value set source system versionvsURI
- - coding scheme representation of value set URIvsName
- - coding scheme representation of value set nameentity
- - full entity representation of a value in a value setpublic void addEntityToIndex(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, java.lang.String vsURI, java.lang.String vsName, Entity entity)
AssertedValueSetSearchIndexService
addEntityToIndex
in interface AssertedValueSetSearchIndexService
codingSchemeUri
- - source asserted value set source system uricodingSchemeVersion
- - source asserted value set source system versionvsURI
- - coding scheme representation of value set URIvsName
- - coding scheme representation of value set nameentity
- - full entity representation of a value in a value setpublic void deleteEntityFromIndex(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, java.lang.String vsURI, java.lang.String vsName, Entity entity)
AssertedValueSetSearchIndexService
deleteEntityFromIndex
in interface AssertedValueSetSearchIndexService
codingSchemeUri
- - source asserted value set source system uricodingSchemeVersion
- - source asserted value set source system versionvsURI
- - coding scheme representation of value set URIvsName
- - coding scheme representation of value set nameentity
- - full entity representation of a value in a value setpublic void dropIndex(AbsoluteCodingSchemeVersionReference reference)
dropIndex
in interface SearchIndexService
public void dropIndexForAllValueSets(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion)
public boolean doesIndexExist(AbsoluteCodingSchemeVersionReference reference)
doesIndexExist
in interface SearchIndexService
public java.util.List<org.apache.lucene.search.ScoreDoc> query(java.util.Set<AbsoluteCodingSchemeVersionReference> codeSystemToInclude, org.apache.lucene.search.Query query)
query
in interface SearchIndexService
public org.apache.lucene.document.Document getById(int id)
getById
in interface SearchIndexService
public org.apache.lucene.analysis.Analyzer getAnalyzer()
getAnalyzer
in interface SearchIndexService
public void createIndex(AbsoluteCodingSchemeVersionReference ref)
createIndex
in interface SearchIndexService
public org.apache.lucene.document.Document getById(java.util.Set<AbsoluteCodingSchemeVersionReference> codeSystemsToInclude, int doc)
getById
in interface SearchIndexService
public IndexCreator getIndexCreator()
public void setIndexCreator(IndexCreator indexCreator)
public IndexDaoManager getIndexDaoManager()
public void setIndexDaoManager(IndexDaoManager indexDaoManager)
public ConcurrentMetaData getConcurrentMetaData()
public void setConcurrentMetaData(ConcurrentMetaData concurrentMetaData)
public EntityIndexer getEntityIndexer()
public void setEntityIndexer(EntityIndexer entityIndexer)