fr.paris.lutece.plugins.dila.service.search
Class DilaLocalIndexer
java.lang.Object
fr.paris.lutece.plugins.dila.service.search.DilaLocalIndexer
- All Implemented Interfaces:
- fr.paris.lutece.portal.service.search.SearchIndexer
public class DilaLocalIndexer
- extends Object
- implements fr.paris.lutece.portal.service.search.SearchIndexer
DILA local indexer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INDEX_TYPE_XML
public static final String INDEX_TYPE_XML
- See Also:
- Constant Field Values
INDEXER_NAME
public static final String INDEXER_NAME
- See Also:
- Constant Field Values
PROPERTY_PAGE_BASE_URL
protected static final String PROPERTY_PAGE_BASE_URL
- See Also:
- Constant Field Values
PROPERTY_SEARCH_PAGE_URL
protected static final String PROPERTY_SEARCH_PAGE_URL
- See Also:
- Constant Field Values
PROPERTY_INDEXER_ENABLE
protected static final String PROPERTY_INDEXER_ENABLE
- See Also:
- Constant Field Values
PARAMETER_PAGE_ID
protected static final String PARAMETER_PAGE_ID
- See Also:
- Constant Field Values
PARAMETER_PAGE_CATEGORIE
protected static final String PARAMETER_PAGE_CATEGORIE
- See Also:
- Constant Field Values
DilaLocalIndexer
public DilaLocalIndexer()
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
getDocuments
public List<org.apache.lucene.document.Document> getDocuments(String strIdDocument)
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
getDescription
public String getDescription()
- Specified by:
getDescription in interface fr.paris.lutece.portal.service.search.SearchIndexer
isEnable
public boolean isEnable()
- Specified by:
isEnable in interface fr.paris.lutece.portal.service.search.SearchIndexer
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
getDocument
protected org.apache.lucene.document.Document getDocument(LocalDTO local)
throws IOException,
InterruptedException,
fr.paris.lutece.portal.service.message.SiteMessageException
- 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.
- Parameters:
local - the xml to index
- Returns:
- the built Document
- Throws:
IOException - The IO Exception
InterruptedException - The InterruptedException
fr.paris.lutece.portal.service.message.SiteMessageException - occurs when a site message need to be
displayed
Copyright © 2014 Mairie de Paris. All Rights Reserved.