fr.paris.lutece.portal.service.search
Class IndexationService

java.lang.Object
  extended by fr.paris.lutece.portal.service.search.IndexationService

public final class IndexationService
extends java.lang.Object

This class provides management methods for indexing


Field Summary
static java.lang.String PARAM_FORCING
           
static java.lang.String PATH_INDEX
           
 
Method Summary
static org.apache.lucene.analysis.Analyzer getAnalyser()
          Gets the current analyser
static java.lang.String getIndex()
          Gets the current index
static java.util.Collection<SearchIndexer> getIndexers()
          Returns all search indexers
static void init()
          Initalizes the service
static java.lang.String processIndexing(boolean bCreate)
          Process the indexing
static void registerIndexer(SearchIndexer indexer)
          Register an indexer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_INDEX

public static final java.lang.String PATH_INDEX
See Also:
Constant Field Values

PARAM_FORCING

public static final java.lang.String PARAM_FORCING
See Also:
Constant Field Values
Method Detail

init

public static void init()
                 throws LuteceInitException
Initalizes the service

Throws:
LuteceInitException - If an error occured

processIndexing

public static java.lang.String processIndexing(boolean bCreate)
Process the indexing

Parameters:
bCreate - Force creating the index
Returns:
the result log of the indexing

registerIndexer

public static void registerIndexer(SearchIndexer indexer)
Register an indexer

Parameters:
indexer - The indexer to add to the registry

getIndex

public static java.lang.String getIndex()
Gets the current index

Returns:
The index

getAnalyser

public static org.apache.lucene.analysis.Analyzer getAnalyser()
Gets the current analyser

Returns:
The analyser

getIndexers

public static java.util.Collection<SearchIndexer> getIndexers()
Returns all search indexers

Returns:
A collection of indexers


Copyright © 2009 Mairie de Paris. All Rights Reserved.