fr.paris.lutece.plugins.wiki.search
Class WikiIndexer

java.lang.Object
  extended by 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
WikiIndexer()
           
 
Method Summary
 String getDescription()
          
static org.apache.lucene.document.Document getDocument(Topic topic, String strUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          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)
          Indexe the topic
 boolean isEnable()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiIndexer

public WikiIndexer()
Method Detail

getDescription

public String getDescription()

Specified by:
getDescription in interface fr.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:
getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
Throws:
IOException
InterruptedException
fr.paris.lutece.portal.service.message.SiteMessageException

getName

public String getName()

Specified by:
getName in interface fr.paris.lutece.portal.service.search.SearchIndexer

getVersion

public String getVersion()

Specified by:
getVersion in interface fr.paris.lutece.portal.service.search.SearchIndexer

indexDocuments

public void indexDocuments()
                    throws IOException,
                           InterruptedException,
                           fr.paris.lutece.portal.service.message.SiteMessageException

Specified by:
indexDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
Throws:
IOException
InterruptedException
fr.paris.lutece.portal.service.message.SiteMessageException

isEnable

public boolean isEnable()

Specified by:
isEnable in interface fr.paris.lutece.portal.service.search.SearchIndexer

indexTopic

public void indexTopic(Topic topic)
                throws IOException,
                       InterruptedException
Indexe the topic

Parameters:
topic - The topic
Throws:
IOException - if an IO error occurs
InterruptedException - if a Thread error occurs

getDocument

public static org.apache.lucene.document.Document getDocument(Topic topic,
                                                              String strUrl,
                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
                                                       throws IOException,
                                                              InterruptedException
Get a document for indexing

Parameters:
topic - The topic
strUrl - The URL
plugin - The plugin
Returns:
The document
Throws:
IOException - if an IO error occurs
InterruptedException - if a Thread error occurs

getListType

public List<String> getListType()

Specified by:
getListType in interface fr.paris.lutece.portal.service.search.SearchIndexer

getSpecificSearchAppUrl

public String getSpecificSearchAppUrl()

Specified by:
getSpecificSearchAppUrl in interface fr.paris.lutece.portal.service.search.SearchIndexer

getDocumentType

public static String getDocumentType()
Get Lucene index document type

Returns:
The document type


Copyright © 2014 Mairie de Paris. All Rights Reserved.