Class HtmlPageIndexer
- java.lang.Object
-
- fr.paris.lutece.plugins.htmlpage.service.search.HtmlPageIndexer
-
- All Implemented Interfaces:
fr.paris.lutece.portal.service.search.SearchIndexer
public class HtmlPageIndexer extends Object implements fr.paris.lutece.portal.service.search.SearchIndexer
Indexer service for htmlPage Xpages
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_INDEX_TYPE_PAGEstatic StringPROPERTY_INDEXER_NAMEstatic StringSHORT_NAME
-
Constructor Summary
Constructors Constructor Description HtmlPageIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Returns the indexer service descriptionList<org.apache.lucene.document.Document>getDocuments(String strId)Return a list of lucene document for incremental indexingList<String>getListType()StringgetName()StringgetSpecificSearchAppUrl()StringgetVersion()voidindexDocuments()Index all enabled HtmlPagebooleanisEnable()
-
-
-
Field Detail
-
SHORT_NAME
public static final String SHORT_NAME
- See Also:
- Constant Field Values
-
PROPERTY_INDEXER_NAME
public static final String PROPERTY_INDEXER_NAME
- See Also:
- Constant Field Values
-
PROPERTY_INDEX_TYPE_PAGE
public static final String PROPERTY_INDEX_TYPE_PAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescription
public String getDescription()
Returns the indexer service description- Specified by:
getDescriptionin interfacefr.paris.lutece.portal.service.search.SearchIndexer- Returns:
- The indexer service description
-
indexDocuments
public void indexDocuments() throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageExceptionIndex all enabled HtmlPage- Specified by:
indexDocumentsin interfacefr.paris.lutece.portal.service.search.SearchIndexer- Throws:
IOException- exceptionInterruptedException- exceptionfr.paris.lutece.portal.service.message.SiteMessageException- exception
-
getDocuments
public List<org.apache.lucene.document.Document> getDocuments(String strId) throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
Return a list of lucene document for incremental indexing- Specified by:
getDocumentsin interfacefr.paris.lutece.portal.service.search.SearchIndexer- Parameters:
strId- the uid of the document- Returns:
- listDocuments the document list
- 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
-
isEnable
public boolean isEnable()
- Specified by:
isEnablein interfacefr.paris.lutece.portal.service.search.SearchIndexer
-
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
-
-