|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.document.service.search.DocumentIndexer
public class DocumentIndexer
Document Indexer
| Field Summary | |
|---|---|
static String |
INDEXER_NAME
|
static String |
SHORT_NAME
|
| Constructor Summary | |
|---|---|
DocumentIndexer()
|
|
| Method Summary | |
|---|---|
String |
getDescription()
Returns the indexer service description |
static org.apache.lucene.document.Document |
getDocument(Document document,
String strUrl,
String strRole,
String strPortletDocumentId)
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 strIdDocument)
Returns a collection of lucene documents with the same id |
List<String> |
getListType()
|
String |
getName()
Returns the indexer service name |
String |
getSpecificSearchAppUrl()
|
String |
getVersion()
Returns the indexer service version |
void |
indexDocuments()
index all lucene documents |
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 INDEXER_NAME
public static final String SHORT_NAME
| Constructor Detail |
|---|
public DocumentIndexer()
| Method Detail |
|---|
public void indexDocuments()
throws IOException,
InterruptedException
indexDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexerIOException - i/o exception
InterruptedException - interrupted exception
public List<org.apache.lucene.document.Document> getDocuments(String strIdDocument)
throws IOException,
InterruptedException
getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexerstrIdDocument - the document id
IOexception - i/o exception
InterruptedException - interrupted exception
IOExceptionpublic String getName()
getName in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic String getVersion()
getVersion in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic String getDescription()
getDescription in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic boolean isEnable()
isEnable in interface fr.paris.lutece.portal.service.search.SearchIndexer
public static org.apache.lucene.document.Document getDocument(Document document,
String strUrl,
String strRole,
String strPortletDocumentId)
throws IOException,
InterruptedException
document - the document to indexstrUrl - the url of the documentsstrRole - the lutece role of the page associate to the documentstrPortletDocumentId - the document id concatened to the id portlet
with a & in the middle
IOException - The IO Exception
InterruptedException - The InterruptedExceptionpublic List<String> getListType()
getListType in interface fr.paris.lutece.portal.service.search.SearchIndexerpublic String getSpecificSearchAppUrl()
getSpecificSearchAppUrl in interface fr.paris.lutece.portal.service.search.SearchIndexer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||