public interface IndexBuilder
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.document.Document |
documentOfDigitalObject(DigitalObject obj)
Creates a Lucene Document from an object accessed remotely.
|
org.apache.lucene.document.Document |
documentOfStorageProxy(StorageProxy objStore)
Creates a Lucene Document from an object in local storage.
|
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
Returns the analyzer used to write documents into the index.
|
org.apache.lucene.queryparser.classic.QueryParser |
getQueryParser()
Returns a query parser to parse queries to this index.
|
java.lang.String |
getSortFieldName(java.lang.String field)
Returns the name of the field that will be used for sorting.
|
void |
init(Main serverMain)
Initialize the index builder and notify it of its containing server Main instance.
|
org.apache.lucene.search.Query |
objectsNeedingReindexingQuery()
Returns a query which matches objects which need to be reindexed.
|
void |
setKeyRing(DOKeyRing keyring)
Sets the DOKeyRing which could be used by the index builder to index encrypted documents.
|
void init(Main serverMain)
org.apache.lucene.analysis.Analyzer getAnalyzer()
org.apache.lucene.queryparser.classic.QueryParser getQueryParser()
void setKeyRing(DOKeyRing keyring)
org.apache.lucene.document.Document documentOfStorageProxy(StorageProxy objStore) throws DOException, java.io.IOException
DOException
java.io.IOException
org.apache.lucene.document.Document documentOfDigitalObject(DigitalObject obj) throws DOException, java.io.IOException
DOException
java.io.IOException
java.lang.String getSortFieldName(java.lang.String field)
org.apache.lucene.search.Query objectsNeedingReindexingQuery()