lumis.search.lucene
Class LuceneIndexer

Package class diagram package LuceneIndexer
java.lang.Object
  extended by lumis.search.Processor
      extended by lumis.search.Indexer
          extended by lumis.search.lucene.LuceneIndexer

public class LuceneIndexer
extends Indexer

Lucene implementation for Indexer.

Since:
4.0.0

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 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.Indexer
mergeSearchContent
 
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

LuceneIndexer

public LuceneIndexer(Node indexerNode)
              throws PortalException
Throws:
PortalException
Method Detail

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 contents 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  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.