public class DigglikeIndexer extends Object implements fr.paris.lutece.portal.service.search.SearchIndexer
Modifier and Type | Field and Description |
---|---|
static String |
INDEX_TYPE_DIGG |
static String |
PROPERTY_INDEXER_NAME |
static String |
SHORT_NAME |
Constructor and Description |
---|
DigglikeIndexer() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the indexer service description
|
static org.apache.lucene.document.Document |
getDocument(DiggSubmit diggSubmit,
String strUrl)
Builds a document which will be used by Lucene during the indexing of the
digg submit list
|
List<org.apache.lucene.document.Document> |
getDocuments(String strIdDiggSubmit)
Return Lucene documents
|
List<String> |
getListType() |
String |
getName()
Get the name of the indexer.
|
String |
getSpecificSearchAppUrl() |
String |
getVersion()
Get the version of the indexer
|
void |
indexDocuments()
Index digglike documents
|
boolean |
isEnable()
Get the state of indexer
|
public static final String INDEX_TYPE_DIGG
public static final String PROPERTY_INDEXER_NAME
public static final String SHORT_NAME
public String getDescription()
getDescription
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public void indexDocuments() throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
indexDocuments
in interface fr.paris.lutece.portal.service.search.SearchIndexer
IOException
- ExceptionInterruptedException
- Exceptionfr.paris.lutece.portal.service.message.SiteMessageException
- Exceptionpublic List<org.apache.lucene.document.Document> getDocuments(String strIdDiggSubmit) throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
getDocuments
in interface fr.paris.lutece.portal.service.search.SearchIndexer
strIdDigg
- the if of the diggIOException
- ExceptionInterruptedException
- Exceptionfr.paris.lutece.portal.service.message.SiteMessageException
- Exceptionpublic static org.apache.lucene.document.Document getDocument(DiggSubmit diggSubmit, String strUrl) throws IOException, InterruptedException
diggSubmit
- the digg submit to indexstrUrl
- the url of digg submitIOException
- The IO ExceptionInterruptedException
- The InterruptedExceptionpublic String getName()
getName
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public String getVersion()
getVersion
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public boolean isEnable()
isEnable
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public List<String> getListType()
getListType
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public String getSpecificSearchAppUrl()
getSpecificSearchAppUrl
in interface fr.paris.lutece.portal.service.search.SearchIndexer
Copyright © 2016 Mairie de Paris. All Rights Reserved.