|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.search.PageIndexer
public class PageIndexer
Indexer service for pages
| Field Summary | |
|---|---|
protected static IPageService |
_pageService
|
static java.lang.String |
INDEX_TYPE_PAGE
|
static java.lang.String |
INDEXER_NAME
|
protected static java.lang.String |
PARAMETER_PAGE_ID
|
protected static java.lang.String |
PROPERTY_INDEXER_ENABLE
|
protected static java.lang.String |
PROPERTY_PAGE_BASE_URL
|
protected static java.lang.String |
PROPERTY_SEARCH_PAGE_URL
|
| Constructor Summary | |
|---|---|
PageIndexer()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Returns the indexer service description |
protected org.apache.lucene.document.Document |
getDocument(Page page,
java.lang.String strUrl)
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. |
java.util.List<org.apache.lucene.document.Document> |
getDocuments(java.lang.String nIdDocument)
Returns a List of lucene documents to add to the index |
java.util.List<java.lang.String> |
getListType()
Returns all the types
of document the service may index. |
java.lang.String |
getName()
Returns the indexer service name |
java.lang.String |
getSpecificSearchAppUrl()
Returns the search app dedicated to the documents indexed by the service |
java.lang.String |
getVersion()
Returns the indexer service version |
void |
indexDocuments()
Index all lucene documents from the plugin, replace List |
boolean |
isEnable()
Tells whether the service is enable or not |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String INDEX_TYPE_PAGE
public static final java.lang.String INDEXER_NAME
protected static final java.lang.String PROPERTY_PAGE_BASE_URL
protected static final java.lang.String PROPERTY_SEARCH_PAGE_URL
protected static final java.lang.String PROPERTY_INDEXER_ENABLE
protected static final java.lang.String PARAMETER_PAGE_ID
protected static IPageService _pageService
| Constructor Detail |
|---|
public PageIndexer()
| Method Detail |
|---|
public void indexDocuments()
throws java.io.IOException,
java.lang.InterruptedException,
SiteMessageException
indexDocuments in interface SearchIndexerjava.io.IOException - If an IO error occured
java.lang.InterruptedException - If a thread error occured
SiteMessageException - occurs when a site message need to be displayed
public java.util.List<org.apache.lucene.document.Document> getDocuments(java.lang.String nIdDocument)
throws java.io.IOException,
java.lang.InterruptedException,
SiteMessageException
getDocuments in interface SearchIndexernIdDocument - document id
java.io.IOException - If an IO error occured
java.lang.InterruptedException - If a thread error occured
SiteMessageException - occurs when a site message need to be displayedpublic java.lang.String getName()
getName in interface SearchIndexerpublic java.lang.String getVersion()
getVersion in interface SearchIndexerpublic java.lang.String getDescription()
getDescription in interface SearchIndexerpublic boolean isEnable()
isEnable in interface SearchIndexer
protected org.apache.lucene.document.Document getDocument(Page page,
java.lang.String strUrl)
throws java.io.IOException,
java.lang.InterruptedException,
SiteMessageException
strUrl - The base URL for documentspage - the page to index
java.io.IOException - The IO Exception
java.lang.InterruptedException - The InterruptedException
SiteMessageException - occurs when a site message need to be displayedpublic java.util.List<java.lang.String> getListType()
types
of document the service may index.
(See SearchItem.getType())
getListType in interface SearchIndexerpublic java.lang.String getSpecificSearchAppUrl()
getSpecificSearchAppUrl in interface SearchIndexer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||