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.SearchIndexer
public 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.SearchIndexer
IOException
InterruptedException
fr.paris.lutece.portal.service.message.SiteMessageException
public String getName()
getName
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public String getVersion()
getVersion
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public void indexDocuments() throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
indexDocuments
in interface fr.paris.lutece.portal.service.search.SearchIndexer
IOException
InterruptedException
fr.paris.lutece.portal.service.message.SiteMessageException
public boolean isEnable()
isEnable
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public 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.SearchIndexer
public String getSpecificSearchAppUrl()
getSpecificSearchAppUrl
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public static String getDocumentType()
Copyright © 2019 City of Paris. All rights reserved.