fr.paris.lutece.plugins.search.solr.indexer
Class SolrIndexerService

java.lang.Object
  extended by fr.paris.lutece.plugins.search.solr.indexer.SolrIndexerService

public final class SolrIndexerService
extends java.lang.Object

SolrIndexerService


Method Summary
static java.lang.String buildErrorMessage(java.lang.Exception exception)
          Build the message error of an exception
static java.util.List<Field> getAdditionalFields()
          Returns the list of all dynamic fields.
static java.lang.String getBaseUrl()
          Return the url of the webapp
static java.util.List<SolrIndexer> getIndexers()
          Returns the indexers List
static java.lang.String getWebAppName()
          Return the name of the webapp
static java.lang.String processIndexing(boolean bCreate)
          Process the indexing
static void write(SolrItem solrItem)
          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
 

Method Detail

getIndexers

public static java.util.List<SolrIndexer> getIndexers()
Returns the indexers List

Returns:
the indexers List

write

public static void write(SolrItem solrItem)
                  throws org.apache.lucene.index.CorruptIndexException,
                         java.io.IOException
Index one document, called by plugin indexers

Parameters:
doc - the document to index
Throws:
org.apache.lucene.index.CorruptIndexException - corruptIndexException
java.io.IOException - i/o exception

processIndexing

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

Parameters:
bCreate - tell if it's total indexing or total (total = true)
Returns:
the result log of the indexing

buildErrorMessage

public static java.lang.String buildErrorMessage(java.lang.Exception exception)
Build the message error of an exception

Parameters:
exception - The exception
Returns:
the message error of the exception

getAdditionalFields

public static java.util.List<Field> getAdditionalFields()
Returns the list of all dynamic fields.

Returns:
the list of all additional fields

getBaseUrl

public static java.lang.String getBaseUrl()
Return the url of the webapp

Returns:
strBase the webapp url

getWebAppName

public static java.lang.String getWebAppName()
Return the name of the webapp

Returns:
the name of the webapp


Copyright © 2011 Mairie de Paris. All Rights Reserved.