public class DocumentIndexer extends Object implements fr.paris.lutece.portal.service.search.SearchIndexer
| Modifier and Type | Field and Description | 
|---|---|
| static String | INDEXER_NAME | 
| static String | SHORT_NAME | 
| Constructor and Description | 
|---|
| DocumentIndexer() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDescription()Returns the indexer service description | 
| static org.apache.lucene.document.Document | getDocument(Document document,
           String strUrl,
           String strRole,
           String strPortletDocumentId)Builds a document which will be used by Lucene during the indexing of the
 pages of the site with the following
 fields : summary, uid, url, contents, title and description. | 
| List<org.apache.lucene.document.Document> | getDocuments(String strIdDocument)Returns a collection of lucene documents with the same id | 
| List<String> | getListType() | 
| String | getName()Returns the indexer service name | 
| String | getSpecificSearchAppUrl() | 
| String | getVersion()Returns the indexer service version | 
| void | indexDocuments()index all lucene documents | 
| boolean | isEnable()Tells whether the service is enable or not | 
public static final String INDEXER_NAME
public static final String SHORT_NAME
public void indexDocuments()
                    throws IOException,
                           InterruptedException
indexDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexerIOException - i/o exceptionInterruptedException - interrupted exceptionpublic List<org.apache.lucene.document.Document> getDocuments(String strIdDocument) throws IOException, InterruptedException
getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexerstrIdDocument - the document idIOexception - i/o exceptionInterruptedException - interrupted exceptionIOExceptionpublic String getName()
getName in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic String getVersion()
getVersion in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic String getDescription()
getDescription in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic boolean isEnable()
isEnable in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic static org.apache.lucene.document.Document getDocument(Document document, String strUrl, String strRole, String strPortletDocumentId) throws IOException, InterruptedException
document - the document to indexstrUrl - the url of the documentsstrRole - the lutece role of the page associate to the documentstrPortletDocumentId - the document id concatened to the id portlet
            with a & in the middleIOException - The IO ExceptionInterruptedException - The InterruptedExceptionpublic List<String> getListType()
getListType in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic String getSpecificSearchAppUrl()
getSpecificSearchAppUrl in interface fr.paris.lutece.portal.service.search.SearchIndexerCopyright © 2020 City of Paris. All rights reserved.