lumis.search.lucene
Class LuceneIndexer
java.lang.Object
lumis.search.Processor
lumis.search.Indexer
lumis.search.lucene.LuceneIndexer
public class LuceneIndexer
- extends Indexer
Lucene implementation for Indexer
.
- Since:
- 4.0.0
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneIndexer
public LuceneIndexer(Node indexerNode)
throws PortalException
- Throws:
PortalException
getWriteLock
public Object getWriteLock(String indexPath)
throws PortalException
- Throws:
PortalException
addSearchContent
public void addSearchContent(SearchContent searchContent)
throws PortalException
- Description copied from class:
Indexer
- Adds a
content
to the index.
- Specified by:
addSearchContent
in class Indexer
- Parameters:
searchContent
- the content
to be added.
- Throws:
PortalException
addSearchContent
protected void addSearchContent(SearchContent searchContent,
String indexPath)
throws PortalException
- Throws:
PortalException
removeSearchContent
public void removeSearchContent(SearchContent searchContent)
throws PortalException
- Description copied from class:
Indexer
- Removes a
content
from the index, using content
's
identifier field
as selection criteria.
- Specified by:
removeSearchContent
in class Indexer
- Parameters:
searchContent
- the content
to be removed.
- Throws:
PortalException
removeSearchContent
public void removeSearchContent(SearchContent searchContent,
String selectionFieldName)
throws PortalException
- Description copied from class:
Indexer
- Removes a
content
from the index, using a field of a content
as selection criteria.
- Specified by:
removeSearchContent
in class Indexer
- Parameters:
searchContent
- the content
to be removed.selectionFieldName
- field to be used as selection criteria
- Throws:
PortalException
removeSearchContent
protected void removeSearchContent(Collection<SearchContent> searchContents,
String indexPath,
String selectionFieldName)
throws PortalException
- Throws:
PortalException
removeSearchContent
public void removeSearchContent(Collection<SearchContent> searchContents)
throws PortalException
- Description copied from class:
Indexer
- Removes a
content
collection from the index, using each
content
's identifier field
as selection criteria.
- Specified by:
removeSearchContent
in class Indexer
- Parameters:
searchContents
- the content
s to be removed.
- Throws:
PortalException
removeSearchContent
protected void removeSearchContent(Collection<SearchContent> searchContents,
String selectionFieldName)
throws PortalException
- Throws:
PortalException
removeSearchContent
protected void removeSearchContent(String selectionFieldName,
Set<String> selectionValues,
String indexPath)
throws PortalException
- Throws:
PortalException
getIndexBasePath
protected String getIndexBasePath(SearchContent searchContent)
throws PortalException
- Throws:
PortalException
Lumisportal 6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.