Class SolrIndexerService
java.lang.Object
fr.paris.lutece.plugins.search.solr.indexer.SolrIndexerService
SolrIndexerService
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildErrorMessage(Exception exception) Build the message error of an exceptionReturns the list of all dynamic fields.static StringReturn the url of the Portal of the webapp (eg http://host/WEBAPP/jsp/site/Portal.jsp)static List<SolrIndexer>Returns the indexers Liststatic StringReturn the url of the Root of the webappstatic StringBuilderstatic StringReturn the name of the webappstatic StringDel sorl index related to this site.static StringprocessIndexing(boolean bCreate) Process the indexingstatic org.apache.solr.common.SolrInputDocumentsolrItem2SolrInputDocument(SolrItem solrItem) Convert aSolrItemobject into aSolrInputDocumentobjectstatic voidIndex one document, called by plugin indexersstatic voidwrite(SolrItem solrItem, StringBuilder sbLogs) Index one document, called by external codestatic voidwrite(Collection<SolrItem> solrItems) Index a collection of documents, called by plugin indexersstatic voidwrite(Collection<SolrItem> solrItems, StringBuilder sbLogs) Index a collection of documents, called by external code
-
Method Details
-
getIndexers
Returns the indexers List- Returns:
- the indexers List
-
write
Index one document, called by plugin indexers- Parameters:
solrItem- The item- Throws:
IOException- i/o exception
-
write
Index one document, called by external code- Parameters:
solrItem- The itemsbLogs- StringBuilder to write to- Throws:
IOException- i/o exception
-
write
Index a collection of documents, called by plugin indexers- Parameters:
solrItems- The item- Throws:
IOException- i/o exception
-
write
Index a collection of documents, called by external code- Parameters:
solrItems- The itemsbLogs- StringBuilder to write to- Throws:
IOException- i/o exception
-
processIndexing
Process the indexing- Parameters:
bCreate- tell if it's total indexing or total (total = true)- Returns:
- the result log of the indexing
-
buildErrorMessage
Build the message error of an exception- Parameters:
exception- The exception- Returns:
- the message error of the exception
-
getAdditionalFields
Returns the list of all dynamic fields.- Returns:
- the list of all additional fields
-
solrItem2SolrInputDocument
public static org.apache.solr.common.SolrInputDocument solrItem2SolrInputDocument(SolrItem solrItem) Convert aSolrItemobject into aSolrInputDocumentobject- Parameters:
solrItem- the item to convert- Returns:
- A
SolrInputDocumentobject corresponding to the item parameter
-
getRootUrl
Return the url of the Root of the webapp- Returns:
- strBase the webapp url
-
getBaseUrl
Return the url of the Portal of the webapp (eg http://host/WEBAPP/jsp/site/Portal.jsp)- Returns:
- strBase the webapp url
-
getWebAppName
Return the name of the webapp- Returns:
- the name of the webapp
-
processDel
Del sorl index related to this site.- Returns:
- log of what appended
-
getSbLogs
-