public class LuceneUpdateService extends Object
addWorkitem() a
ItemCollection can be added to a lucene search index. The service init method
reads the property file 'imixs.properties' from the current classpath to
determine the configuration.
did-not-update-the-index-when-called-from-a-web-modul,
LucenePlugin| Modifier and Type | Field and Description |
|---|---|
protected static String |
ANONYMOUS |
protected static String |
DEFAULT_ANALYSER |
protected static String |
DEFAULT_INDEX_DIRECTORY |
| Constructor and Description |
|---|
LuceneUpdateService() |
| Modifier and Type | Method and Description |
|---|---|
ItemCollection |
getConfiguration()
Returns the Lucene configuration
|
void |
removeDocument(String uniqueID)
This method removes a single Document from the search index.
|
void |
updateDocument(ItemCollection documentContext)
This method adds a single document into the search index.
|
void |
updateDocuments(Collection<ItemCollection> documents)
This method updates the search index for a collection of Documents.
|
protected static final String DEFAULT_ANALYSER
protected static final String DEFAULT_INDEX_DIRECTORY
protected static final String ANONYMOUS
public ItemCollection getConfiguration()
public void updateDocument(ItemCollection documentContext)
documentContext - public void updateDocuments(Collection<ItemCollection> documents)
documents - of ItemCollections to be indexedIndexExceptionpublic void removeDocument(String uniqueID)
uniqueID - of the workitem to be removedPluginExceptionCopyright © 2006–2017 Imixs Software Solutions GmbH. All rights reserved.