|
||||||||||
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 String |
INDEX_TYPE_PAGE
|
static String |
INDEXER_NAME
|
protected static String |
PARAMETER_PAGE_ID
|
protected static String |
PROPERTY_INDEXER_ENABLE
|
protected static String |
PROPERTY_PAGE_BASE_URL
|
protected static String |
PROPERTY_SEARCH_PAGE_URL
|
Constructor Summary | |
---|---|
PageIndexer()
|
Method Summary | |
---|---|
String |
getDescription()
Returns the indexer service description |
protected org.apache.lucene.document.Document |
getDocument(Page page,
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. |
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 |
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 String INDEX_TYPE_PAGE
public static final String INDEXER_NAME
protected static final String PROPERTY_PAGE_BASE_URL
protected static final String PROPERTY_SEARCH_PAGE_URL
protected static final String PROPERTY_INDEXER_ENABLE
protected static final String PARAMETER_PAGE_ID
protected static IPageService _pageService
Constructor Detail |
---|
public PageIndexer()
Method Detail |
---|
public void indexDocuments() throws IOException, InterruptedException, SiteMessageException
indexDocuments
in interface SearchIndexer
IOException
- If an IO error occured
InterruptedException
- If a thread error occured
SiteMessageException
- 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 id
IOException
- If an IO error occured
InterruptedException
- If a thread error occured
SiteMessageException
- 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
protected org.apache.lucene.document.Document getDocument(Page page, String strUrl) throws IOException, InterruptedException, SiteMessageException
strUrl
- The base URL for documentspage
- the page to index
IOException
- The IO Exception
InterruptedException
- The InterruptedException
SiteMessageException
- occurs when a site message need to be
displayedpublic List<String> getListType()
types
of document the service may index.
(See SearchItem.getType()
)
getListType
in interface SearchIndexer
public String getSpecificSearchAppUrl()
getSpecificSearchAppUrl
in interface SearchIndexer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |