public class SuggestIndexer extends Object implements fr.paris.lutece.portal.service.search.SearchIndexer
| Modifier and Type | Field and Description |
|---|---|
static String |
INDEX_TYPE_SUGGEST |
static String |
PROPERTY_INDEXER_NAME |
static String |
SHORT_NAME |
| Constructor and Description |
|---|
SuggestIndexer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the indexer service description
|
static org.apache.lucene.document.Document |
getDocument(SuggestSubmit suggestSubmit,
String strUrl)
Builds a document which will be used by Lucene during the indexing of the
suggest submit list
|
List<org.apache.lucene.document.Document> |
getDocuments(String strIdSuggestSubmit)
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 suggest documents
|
boolean |
isEnable()
Get the state of indexer
|
public static final String INDEX_TYPE_SUGGEST
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.SearchIndexerpublic void indexDocuments()
throws IOException,
InterruptedException,
fr.paris.lutece.portal.service.message.SiteMessageException
indexDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexerIOException - ExceptionInterruptedException - Exceptionfr.paris.lutece.portal.service.message.SiteMessageException - Exceptionpublic List<org.apache.lucene.document.Document> getDocuments(String strIdSuggestSubmit) throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexerstrIdSuggest - the if of the suggestIOException - ExceptionInterruptedException - Exceptionfr.paris.lutece.portal.service.message.SiteMessageException - Exceptionpublic static org.apache.lucene.document.Document getDocument(SuggestSubmit suggestSubmit, String strUrl) throws IOException, InterruptedException
suggestSubmit - the suggest submit to indexstrUrl - the url of suggest submitIOException - The IO ExceptionInterruptedException - The InterruptedExceptionpublic String getName()
getName in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic String getVersion()
getVersion in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic boolean isEnable()
isEnable in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic 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 © 2016 City of Paris. All rights reserved.