|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.search.Processor lumis.search.Indexer lumis.search.lucene.LuceneIndexer
public class LuceneIndexer
Lucene implementation for Indexer
.
Field Summary |
---|
Fields inherited from class lumis.search.Processor |
---|
definitionNode, searchEngineId |
Constructor Summary | |
---|---|
LuceneIndexer(Node indexerNode)
|
Method Summary | |
---|---|
void |
addSearchContent(SearchContent searchContent)
Adds a content to the index. |
protected void |
addSearchContent(SearchContent searchContent,
String indexPath)
|
protected String |
getIndexBasePath(SearchContent searchContent)
|
Object |
getWriteLock(String indexPath)
|
void |
mergeSearchContent(SearchContent searchContent)
Updates a content in the index. |
protected void |
mergeSearchContent(SearchContent searchContent,
String indexPath)
|
void |
removeSearchContent(Collection<SearchContent> searchContents)
Removes a content collection from the index, using each
content 's identifier field
as selection criteria. |
protected void |
removeSearchContent(Collection<SearchContent> searchContents,
String selectionFieldName)
|
protected void |
removeSearchContent(Collection<SearchContent> searchContents,
String indexPath,
String selectionFieldName)
|
void |
removeSearchContent(SearchContent searchContent)
Removes a content from the index, using content 's
identifier field as selection criteria. |
void |
removeSearchContent(SearchContent searchContent,
String selectionFieldName)
Removes a content from the index, using a field of a content
as selection criteria. |
protected void |
removeSearchContent(String selectionFieldName,
Set<String> selectionValues,
String indexPath)
|
Methods inherited from class lumis.search.Processor |
---|
getConfigNode, getConfigNodes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LuceneIndexer(Node indexerNode) throws PortalException
PortalException
Method Detail |
---|
public Object getWriteLock(String indexPath) throws PortalException
PortalException
public void addSearchContent(SearchContent searchContent) throws PortalException
Indexer
content
to the index.
addSearchContent
in class Indexer
searchContent
- the content
to be added.
PortalException
protected void addSearchContent(SearchContent searchContent, String indexPath) throws PortalException
PortalException
public void mergeSearchContent(SearchContent searchContent) throws PortalException
Indexer
content
in the index. The update will be done in one of the two following ways:
mergeSearchContent
in class Indexer
searchContent
- the content
to be updated.
PortalException
protected void mergeSearchContent(SearchContent searchContent, String indexPath) throws PortalException
PortalException
public void removeSearchContent(SearchContent searchContent) throws PortalException
Indexer
content
from the index, using content
's
identifier field
as selection criteria.
removeSearchContent
in class Indexer
searchContent
- the content
to be removed.
PortalException
public void removeSearchContent(SearchContent searchContent, String selectionFieldName) throws PortalException
Indexer
content
from the index, using a field of a content
as selection criteria.
removeSearchContent
in class Indexer
searchContent
- the content
to be removed.selectionFieldName
- field to be used as selection criteria
PortalException
protected void removeSearchContent(Collection<SearchContent> searchContents, String indexPath, String selectionFieldName) throws PortalException
PortalException
public void removeSearchContent(Collection<SearchContent> searchContents) throws PortalException
Indexer
content
collection from the index, using each
content
's identifier field
as selection criteria.
removeSearchContent
in class Indexer
searchContents
- the content
s to be removed.
PortalException
protected void removeSearchContent(Collection<SearchContent> searchContents, String selectionFieldName) throws PortalException
PortalException
protected void removeSearchContent(String selectionFieldName, Set<String> selectionValues, String indexPath) throws PortalException
PortalException
protected String getIndexBasePath(SearchContent searchContent) throws PortalException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |