public class WikiIndexer extends Object implements fr.paris.lutece.portal.service.search.SearchIndexer
| Constructor and Description |
|---|
WikiIndexer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
static org.apache.lucene.document.Document |
getDocument(Topic topic,
String strUrl,
String strLanguage)
Get a document for indexing
|
List<org.apache.lucene.document.Document> |
getDocuments(String strDocument) |
static String |
getDocumentType()
Get Lucene index document type
|
List<String> |
getListType() |
String |
getName() |
String |
getSpecificSearchAppUrl() |
String |
getVersion() |
void |
indexDocuments() |
void |
indexTopic(Topic topic,
String strLanguage)
Indexe the topic
|
boolean |
isEnable() |
public String getDescription()
getDescription in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic List<org.apache.lucene.document.Document> getDocuments(String strDocument) throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexerIOExceptionInterruptedExceptionfr.paris.lutece.portal.service.message.SiteMessageExceptionpublic String getName()
getName in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic String getVersion()
getVersion in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic void indexDocuments()
throws IOException,
InterruptedException,
fr.paris.lutece.portal.service.message.SiteMessageException
indexDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexerIOExceptionInterruptedExceptionfr.paris.lutece.portal.service.message.SiteMessageExceptionpublic boolean isEnable()
isEnable in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic void indexTopic(Topic topic, String strLanguage) throws IOException, InterruptedException
topic - The topicstrLanguage - The languageIOException - if an IO error occursInterruptedException - if a Thread error occurspublic static org.apache.lucene.document.Document getDocument(Topic topic, String strUrl, String strLanguage) throws IOException, InterruptedException
topic - The topicstrUrl - The URLstrLanguage - The languageIOException - if an IO error occursInterruptedException - if a Thread error occurspublic List<String> getListType()
getListType in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic String getSpecificSearchAppUrl()
getSpecificSearchAppUrl in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic static String getDocumentType()
Copyright © 2019 City of Paris. All rights reserved.