Class WikiIndexer
- java.lang.Object
-
- fr.paris.lutece.plugins.wiki.search.WikiIndexer
-
- All Implemented Interfaces:
fr.paris.lutece.portal.service.search.SearchIndexer
public class WikiIndexer extends Object implements fr.paris.lutece.portal.service.search.SearchIndexer
Wiki Indexer
-
-
Constructor Summary
Constructors Constructor Description WikiIndexer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()static org.apache.lucene.document.DocumentgetDocument(Topic topic, String strUrl, String strLanguage)Get a document for indexingList<org.apache.lucene.document.Document>getDocuments(String strDocument)static StringgetDocumentType()Get Lucene index document typeList<String>getListType()StringgetName()StringgetSpecificSearchAppUrl()StringgetVersion()voidindexDocuments()voidindexTopic(Topic topic, String strLanguage)Indexe the topicbooleanisEnable()
-
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
getDocuments
public List<org.apache.lucene.document.Document> getDocuments(String strDocument) throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
- Specified by:
getDocumentsin interfacefr.paris.lutece.portal.service.search.SearchIndexer- Throws:
IOExceptionInterruptedExceptionfr.paris.lutece.portal.service.message.SiteMessageException
-
getName
public String getName()
- Specified by:
getNamein interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
indexDocuments
public void indexDocuments() throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException- Specified by:
indexDocumentsin interfacefr.paris.lutece.portal.service.search.SearchIndexer- Throws:
IOExceptionInterruptedExceptionfr.paris.lutece.portal.service.message.SiteMessageException
-
isEnable
public boolean isEnable()
- Specified by:
isEnablein interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
indexTopic
public void indexTopic(Topic topic, String strLanguage) throws IOException, InterruptedException
Indexe the topic- Parameters:
topic- The topicstrLanguage- The language- Throws:
IOException- if an IO error occursInterruptedException- if a Thread error occurs
-
getDocument
public static org.apache.lucene.document.Document getDocument(Topic topic, String strUrl, String strLanguage) throws IOException, InterruptedException
Get a document for indexing- Parameters:
topic- The topicstrUrl- The URLstrLanguage- The language- Returns:
- The document
- Throws:
IOException- if an IO error occursInterruptedException- if a Thread error occurs
-
getListType
public List<String> getListType()
- Specified by:
getListTypein interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
getSpecificSearchAppUrl
public String getSpecificSearchAppUrl()
- Specified by:
getSpecificSearchAppUrlin interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
getDocumentType
public static String getDocumentType()
Get Lucene index document type- Returns:
- The document type
-
-