fr.paris.lutece.plugins.directory.service.directorysearch
Class DirectoryIndexer

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.service.directorysearch.DirectoryIndexer
All Implemented Interfaces:
IDirectorySearchIndexer

public class DirectoryIndexer
extends java.lang.Object
implements IDirectorySearchIndexer

Directory Indexer


Constructor Summary
DirectoryIndexer()
           
 
Method Summary
static void appendListRecordToDelete(java.util.List<java.lang.Integer> lListIdRecord)
          Append list record id to delete Hack (ugly) to bypass problem of primary key violation on table "directory_indexer_action" when inserting many records
 java.lang.String getDescription()
          Returns the indexer service description
 java.lang.String getName()
          Returns the indexer service name
 java.lang.String getVersion()
          Returns the indexer service version
 boolean isEnable()
          Tells whether the service is enable or not
 void processIndexing(org.apache.lucene.index.IndexWriter indexWriter, boolean bCreate, java.lang.StringBuffer sbLogs)
          add to the index writer the document associate to the key specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryIndexer

public DirectoryIndexer()
Method Detail

getDescription

public java.lang.String getDescription()
Description copied from interface: IDirectorySearchIndexer
Returns the indexer service description

Specified by:
getDescription in interface IDirectorySearchIndexer
Returns:
the indexer service description

processIndexing

public void processIndexing(org.apache.lucene.index.IndexWriter indexWriter,
                            boolean bCreate,
                            java.lang.StringBuffer sbLogs)
                     throws java.io.IOException,
                            java.lang.InterruptedException,
                            fr.paris.lutece.portal.service.message.SiteMessageException
Description copied from interface: IDirectorySearchIndexer
add to the index writer the document associate to the key specified in parameter

Specified by:
processIndexing in interface IDirectorySearchIndexer
Parameters:
indexWriter - lucene index writer
bCreate - true for indexing all directory false for use incremental indexing
sbLogs - the buffer logger
Throws:
java.io.IOException - If an IO error occured
java.lang.InterruptedException - If a thread error occured
fr.paris.lutece.portal.service.message.SiteMessageException - occurs when a site message need to be displayed

getName

public java.lang.String getName()
Description copied from interface: IDirectorySearchIndexer
Returns the indexer service name

Specified by:
getName in interface IDirectorySearchIndexer
Returns:
the indexer service name

getVersion

public java.lang.String getVersion()
Description copied from interface: IDirectorySearchIndexer
Returns the indexer service version

Specified by:
getVersion in interface IDirectorySearchIndexer
Returns:
the indexer service version

isEnable

public boolean isEnable()
Description copied from interface: IDirectorySearchIndexer
Tells whether the service is enable or not

Specified by:
isEnable in interface IDirectorySearchIndexer
Returns:
true if enable, otherwise false

appendListRecordToDelete

public static void appendListRecordToDelete(java.util.List<java.lang.Integer> lListIdRecord)
Append list record id to delete Hack (ugly) to bypass problem of primary key violation on table "directory_indexer_action" when inserting many records

Parameters:
lListIdRecord - List record to delete


Copyright © 2012 Mairie de Paris. All Rights Reserved.