public class PageIndexer extends Object implements SearchIndexer
Modifier and Type | Field and Description |
---|---|
static String |
INDEX_TYPE_PAGE |
static String |
INDEXER_NAME |
Constructor and Description |
---|
PageIndexer() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the indexer service description
|
List<org.apache.lucene.document.Document> |
getDocuments(String nIdDocument)
Returns a List of lucene documents to add to the index
|
List<String> |
getListType()
Returns all the
types of document the service may index. |
String |
getName()
Returns the indexer service name
|
String |
getSpecificSearchAppUrl()
Returns the search app dedicated to the documents indexed by the service
|
String |
getVersion()
Returns the indexer service version
|
void |
indexDocuments()
Index all lucene documents from the plugin, replace List<Document> getDocuments( ) method
|
boolean |
isEnable()
Tells whether the service is enable or not
|
public static final String INDEX_TYPE_PAGE
public static final String INDEXER_NAME
public void indexDocuments() throws IOException, InterruptedException, SiteMessageException
indexDocuments
in interface SearchIndexer
IOException
- If an IO error occuredInterruptedException
- If a thread error occuredSiteMessageException
- occurs when a site message need to be displayedpublic List<org.apache.lucene.document.Document> getDocuments(String nIdDocument) throws IOException, InterruptedException, SiteMessageException
getDocuments
in interface SearchIndexer
nIdDocument
- document idIOException
- If an IO error occuredInterruptedException
- If a thread error occuredSiteMessageException
- occurs when a site message need to be displayedpublic String getName()
getName
in interface SearchIndexer
public String getVersion()
getVersion
in interface SearchIndexer
public String getDescription()
getDescription
in interface SearchIndexer
public boolean isEnable()
isEnable
in interface SearchIndexer
public List<String> getListType()
types
of document the service may index. (See
SearchItem.getType()
)getListType
in interface SearchIndexer
public String getSpecificSearchAppUrl()
getSpecificSearchAppUrl
in interface SearchIndexer
Copyright © 2020 City of Paris. All rights reserved.