|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.search.IndexationService
public final class IndexationService
This class provides management methods for indexing
| Field Summary | |
|---|---|
static int |
ALL_DOCUMENT
|
static org.apache.lucene.util.Version |
LUCENE_INDEX_VERSION
|
static String |
PARAM_FORCING
|
static String |
PATH_INDEX
|
| Method Summary | |
|---|---|
static void |
addIndexerAction(String strIdDocument,
String indexerName,
int nIdTask)
Add Indexer Action to perform on a record |
static void |
addIndexerAction(String strIdDocument,
String indexerName,
int nIdTask,
int nIdPortlet)
Add Indexer Action to perform on a record |
static void |
error(IndexerAction action,
Exception e,
String strMessage)
Log the error for the indexer action. |
static void |
error(SearchIndexer indexer,
Exception e,
String strMessage)
Log the error for the search indexer. |
static List<IndexerAction> |
getAllIndexerActionByTask(int nIdTask)
return a list of IndexerAction by task key |
static org.apache.lucene.analysis.Analyzer |
getAnalyser()
Gets the current analyser |
static org.apache.lucene.store.Directory |
getDirectoryIndex()
Gets the current IndexSearcher. |
static String |
getIndex()
Deprecated. use getDirectoryIndex( ) instead |
static Collection<SearchIndexer> |
getIndexers()
Returns all search indexers |
static IndexationService |
getInstance()
|
static void |
init()
Initalizes the service |
static String |
processIndexing(boolean bCreate)
Process the indexing |
static void |
registerIndexer(SearchIndexer indexer)
Register an indexer |
static void |
removeAllIndexerAction()
Remove all Indexer Action |
static void |
removeIndexerAction(int nIdAction)
Remove a Indexer Action |
static void |
write(org.apache.lucene.document.Document doc)
Index one document, called by plugin indexers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PATH_INDEX
public static final String PARAM_FORCING
public static final int ALL_DOCUMENT
public static org.apache.lucene.util.Version LUCENE_INDEX_VERSION
| Method Detail |
|---|
public static IndexationService getInstance()
public static void init()
throws LuteceInitException
LuteceInitException - If an error occuredpublic static void registerIndexer(SearchIndexer indexer)
indexer - The indexer to add to the registrypublic static String processIndexing(boolean bCreate)
bCreate - Force creating the index
public static void write(org.apache.lucene.document.Document doc)
throws org.apache.lucene.index.CorruptIndexException,
IOException
doc - the document to index
org.apache.lucene.index.CorruptIndexException - corruptIndexException
IOException - i/o exception
public static void error(SearchIndexer indexer,
Exception e,
String strMessage)
indexer - the SearchIndexere - the exceptionstrMessage - the str message
public static void error(IndexerAction action,
Exception e,
String strMessage)
action - the IndexerActione - the exceptionstrMessage - the str message@Deprecated public static String getIndex()
public static org.apache.lucene.store.Directory getDirectoryIndex()
throws IOException
IOException - Signals that an I/O exception has occurred.public static org.apache.lucene.analysis.Analyzer getAnalyser()
public static Collection<SearchIndexer> getIndexers()
public static List<IndexerAction> getAllIndexerActionByTask(int nIdTask)
nIdTask - the task kety
public static void removeIndexerAction(int nIdAction)
nIdAction - the key of the action to removepublic static void removeAllIndexerAction()
public static void addIndexerAction(String strIdDocument,
String indexerName,
int nIdTask,
int nIdPortlet)
strIdDocument - the id of the documentindexerName - the name of the indexernIdTask - the key of the action to donIdPortlet - id of the portlet
public static void addIndexerAction(String strIdDocument,
String indexerName,
int nIdTask)
strIdDocument - the id of the documentindexerName - the name of the indexernIdTask - the key of the action to do
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||