public class DefaultHtmldocIndexer extends Object implements IHtmldocsSearchIndexer
| Constructor and Description |
|---|
DefaultHtmldocIndexer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the indexer service description
|
static org.apache.lucene.document.Document |
getDocument(HtmlDoc htmldoc)
Builds a document which will be used by Lucene during the indexing of the
announces list
|
String |
getName()
Returns the indexer service name
|
String |
getVersion()
Returns the indexer service version
|
boolean |
isEnable()
Tells whether the service is enable or not
|
void |
processIndexing(org.apache.lucene.index.IndexWriter indexWriter,
boolean bCreate,
StringBuffer sbLogs)
add to the index writer the document associate to the key specified in parameter
|
public String getDescription()
getDescription in interface IHtmldocsSearchIndexerpublic void processIndexing(org.apache.lucene.index.IndexWriter indexWriter,
boolean bCreate,
StringBuffer sbLogs)
throws IOException,
InterruptedException,
fr.paris.lutece.portal.service.message.SiteMessageException
processIndexing in interface IHtmldocsSearchIndexerindexWriter - lucene index writerbCreate - true for indexing all directory
false for use incremental indexingsbLogs - the buffer loggerIOException - If an IO error occuredInterruptedException - If a thread error occuredfr.paris.lutece.portal.service.message.SiteMessageException - occurs when a site message need to be displayedpublic static org.apache.lucene.document.Document getDocument(HtmlDoc htmldoc) throws IOException, InterruptedException
announce - the announcestrUrl - the urlplugin - the pluginIOException - If an IO Exception occurredInterruptedException - If the indexer is interruptedpublic String getName()
getName in interface IHtmldocsSearchIndexerpublic String getVersion()
getVersion in interface IHtmldocsSearchIndexerpublic boolean isEnable()
isEnable in interface IHtmldocsSearchIndexerCopyright © 2017 City of Paris. All rights reserved.