public final class SolrIndexerService extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
buildErrorMessage(Exception exception)
Build the message error of an exception
|
static List<Field> |
getAdditionalFields()
Returns the list of all dynamic fields.
|
static String |
getBaseUrl()
Return the url of the Portal of the webapp (eg http://host/WEBAPP/jsp/site/Portal.jsp)
|
static List<SolrIndexer> |
getIndexers()
Returns the indexers List
|
static String |
getRootUrl()
Return the url of the Root of the webapp
|
static StringBuffer |
getSbLogs() |
static String |
getWebAppName()
Return the name of the webapp
|
static String |
processDel()
Del sorl index related to this site.
|
static String |
processIndexing(boolean bCreate)
Process the indexing
|
static void |
write(Collection<SolrItem> solrItems)
Index a collection of documents, called by plugin indexers
|
static void |
write(Collection<SolrItem> solrItems,
StringBuffer sbLogs)
Index a collection of documents, called by external code
|
static void |
write(SolrItem solrItem)
Index one document, called by plugin indexers
|
static void |
write(SolrItem solrItem,
StringBuffer sbLogs)
Index one document, called by external code
|
public static List<SolrIndexer> getIndexers()
public static void write(SolrItem solrItem) throws org.apache.lucene.index.CorruptIndexException, IOException
solrItem - The itemorg.apache.lucene.index.CorruptIndexException - corruptIndexExceptionIOException - i/o exceptionpublic static void write(SolrItem solrItem, StringBuffer sbLogs) throws org.apache.lucene.index.CorruptIndexException, IOException
solrItem - The itemsbLogs - StringBuffer to write toorg.apache.lucene.index.CorruptIndexException - corruptIndexExceptionIOException - i/o exceptionpublic static void write(Collection<SolrItem> solrItems) throws org.apache.lucene.index.CorruptIndexException, IOException
solrItems - The itemorg.apache.lucene.index.CorruptIndexException - corruptIndexExceptionIOException - i/o exceptionpublic static void write(Collection<SolrItem> solrItems, StringBuffer sbLogs) throws org.apache.lucene.index.CorruptIndexException, IOException
solrItems - The itemsbLogs - StringBuffer to write toorg.apache.lucene.index.CorruptIndexException - corruptIndexExceptionIOException - i/o exceptionpublic static String processIndexing(boolean bCreate)
bCreate - tell if it's total indexing or total (total = true)public static String buildErrorMessage(Exception exception)
exception - The exceptionpublic static List<Field> getAdditionalFields()
public static String getRootUrl()
public static String getBaseUrl()
public static String getWebAppName()
public static String processDel()
public static StringBuffer getSbLogs()
Copyright © 2019 City of Paris. All rights reserved.