Class PageIndexer
java.lang.Object
fr.paris.lutece.portal.service.search.PageIndexer
- All Implemented Interfaces:
SearchIndexer
Indexer service for pages
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the indexer service descriptionList<org.apache.lucene.document.Document>getDocuments(String nIdDocument) Returns a List of lucene documents to add to the indexReturns all thetypesof document the service may index.getName()Returns the indexer service nameReturns the search app dedicated to the documents indexed by the serviceReturns the indexer service versionvoidIndex all lucene documents from the plugin, replace List<Document> getDocuments( ) methodbooleanisEnable()Tells whether the service is enable or not
-
Field Details
-
INDEX_TYPE_PAGE
- See Also:
-
INDEXER_NAME
- See Also:
-
-
Constructor Details
-
PageIndexer
public PageIndexer()
-
-
Method Details
-
indexDocuments
Index all lucene documents from the plugin, replace List<Document> getDocuments( ) method- Specified by:
indexDocumentsin interfaceSearchIndexer- Throws:
IOException- If an IO error occuredInterruptedException- If a thread error occuredSiteMessageException- occurs when a site message need to be displayed
-
getDocuments
public List<org.apache.lucene.document.Document> getDocuments(String nIdDocument) throws IOException, InterruptedException, SiteMessageException Returns 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:
IOException- If an IO error occuredInterruptedException- If a thread error occuredSiteMessageException- occurs when a site message need to be displayed
-
getName
Returns the indexer service name- Specified by:
getNamein interfaceSearchIndexer- Returns:
- the indexer service name
-
getVersion
Returns the indexer service version- Specified by:
getVersionin interfaceSearchIndexer- Returns:
- the indexer service version
-
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
Returns all thetypesof document the service may index. (SeeSearchItem.getType())- Specified by:
getListTypein interfaceSearchIndexer- Returns:
- The list
-
getSpecificSearchAppUrl
Returns the search app dedicated to the documents indexed by the service- Specified by:
getSpecificSearchAppUrlin interfaceSearchIndexer- Returns:
- the url of the app page
-