Interface SearchIndexer
-
- All Known Implementing Classes:
PageIndexer
public interface SearchIndexerInterface of pluggable indexer. An Indexer can add documents to the main Lucene index.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDescription()Returns the indexer service descriptionList<org.apache.lucene.document.Document>getDocuments(String strIdDocument)Returns a List of lucene documents to add to the indexList<String>getListType()Returns all thetypesof document the service may index.StringgetName()Returns the indexer service nameStringgetSpecificSearchAppUrl()Returns the search app dedicated to the documents indexed by the serviceStringgetVersion()Returns the indexer service versionvoidindexDocuments()Index all lucene documents from the plugin, replace List<Document> getDocuments( ) methodbooleanisEnable()Tells whether the service is enable or not
-
-
-
Method Detail
-
indexDocuments
void indexDocuments() throws IOException, InterruptedException, SiteMessageExceptionIndex all lucene documents from the plugin, replace List<Document> getDocuments( ) method- Throws:
IOException- If an IO error occuredInterruptedException- If a thread error occuredSiteMessageException- occurs when a site message need to be displayed
-
getDocuments
List<org.apache.lucene.document.Document> getDocuments(String strIdDocument) throws IOException, InterruptedException, SiteMessageException
Returns a List of lucene documents to add to the index- Parameters:
strIdDocument- document id- Returns:
- A List of lucene documents to add to the index
- Throws:
IOException- If an IO error occuredInterruptedException- If a thread error occuredSiteMessageException- occurs when a site message need to be displayed
-
getName
String getName()
Returns the indexer service name- Returns:
- the indexer service name
-
getVersion
String getVersion()
Returns the indexer service version- Returns:
- the indexer service version
-
getDescription
String getDescription()
Returns the indexer service description- Returns:
- the indexer service description
-
isEnable
boolean isEnable()
Tells whether the service is enable or not- Returns:
- true if enable, otherwise false
-
getListType
List<String> getListType()
Returns all thetypesof document the service may index. (SeeSearchItem.getType())- Returns:
- The list
-
getSpecificSearchAppUrl
String getSpecificSearchAppUrl()
Returns the search app dedicated to the documents indexed by the service- Returns:
- the url of the app page
-
-