Class PageIndexer
- java.lang.Object
-
- fr.paris.lutece.portal.service.search.PageIndexer
-
- All Implemented Interfaces:
SearchIndexer
public class PageIndexer extends java.lang.Object implements SearchIndexer
Indexer service for pages
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringINDEX_TYPE_PAGEstatic java.lang.StringINDEXER_NAME
-
Constructor Summary
Constructors Constructor Description PageIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Returns the indexer service descriptionjava.util.List<org.apache.lucene.document.Document>getDocuments(java.lang.String nIdDocument)Returns a List of lucene documents to add to the indexjava.util.List<java.lang.String>getListType()Returns all thetypesof document the service may index.java.lang.StringgetName()Returns the indexer service namejava.lang.StringgetSpecificSearchAppUrl()Returns the search app dedicated to the documents indexed by the servicejava.lang.StringgetVersion()Returns the indexer service versionvoidindexDocuments()Index all lucene documents from the plugin, replace List<Document> getDocuments( ) methodbooleanisEnable()Tells whether the service is enable or not
-
-
-
Field Detail
-
INDEX_TYPE_PAGE
public static final java.lang.String INDEX_TYPE_PAGE
- See Also:
- Constant Field Values
-
INDEXER_NAME
public static final java.lang.String INDEXER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
indexDocuments
public void indexDocuments() throws java.io.IOException, java.lang.InterruptedException, SiteMessageExceptionIndex all lucene documents from the plugin, replace List<Document> getDocuments( ) method- Specified by:
indexDocumentsin interfaceSearchIndexer- Throws:
java.io.IOException- If an IO error occuredjava.lang.InterruptedException- If a thread error occuredSiteMessageException- occurs when a site message need to be displayed
-
getDocuments
public java.util.List<org.apache.lucene.document.Document> getDocuments(java.lang.String nIdDocument) throws java.io.IOException, java.lang.InterruptedException, SiteMessageExceptionReturns a List of lucene documents to add to the index- Specified by:
getDocumentsin interfaceSearchIndexer- Parameters:
nIdDocument- document id- Returns:
- A List of lucene documents to add to the index
- Throws:
java.io.IOException- If an IO error occuredjava.lang.InterruptedException- If a thread error occuredSiteMessageException- occurs when a site message need to be displayed
-
getName
public java.lang.String getName()
Returns the indexer service name- Specified by:
getNamein interfaceSearchIndexer- Returns:
- the indexer service name
-
getVersion
public java.lang.String getVersion()
Returns the indexer service version- Specified by:
getVersionin interfaceSearchIndexer- Returns:
- the indexer service version
-
getDescription
public java.lang.String getDescription()
Returns the indexer service description- Specified by:
getDescriptionin interfaceSearchIndexer- Returns:
- the indexer service description
-
isEnable
public boolean isEnable()
Tells whether the service is enable or not- Specified by:
isEnablein interfaceSearchIndexer- Returns:
- true if enable, otherwise false
-
getListType
public java.util.List<java.lang.String> getListType()
Returns all thetypesof document the service may index. (SeeSearchItem.getType())- Specified by:
getListTypein interfaceSearchIndexer- Returns:
- The list
-
getSpecificSearchAppUrl
public java.lang.String getSpecificSearchAppUrl()
Returns the search app dedicated to the documents indexed by the service- Specified by:
getSpecificSearchAppUrlin interfaceSearchIndexer- Returns:
- the url of the app page
-
-