public class DocumentsIndexationService extends CoselmarSimpleServiceSupport
Document
or more exactly DocumentBean indexation :
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DOCUMENT_AUTHORS_INDEX_PROPERTY |
protected static String |
DOCUMENT_ID_INDEX_PROPERTY |
protected static String |
DOCUMENT_KEYWORD_INDEX_PROPERTY |
protected static String |
DOCUMENT_NAME_INDEX_PROPERTY |
protected static String |
DOCUMENT_SUMMARY_INDEX_PROPERTY |
protected static String |
DOCUMENT_TYPE |
servicesContext| Constructor and Description |
|---|
DocumentsIndexationService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanIndex() |
void |
deleteDocument(String documentId) |
void |
indexDocument(DocumentBean document) |
List<String> |
searchDocuments(List<String> texts) |
List<String> |
searchDocuments(String text) |
void |
updateDocument(DocumentBean document) |
commit, getCoselmarServicesConfig, getCoselmarUserDao, getLuceneUtils, getPersistenceContext, rollback, setServicesContextprotected static final String DOCUMENT_ID_INDEX_PROPERTY
protected static final String DOCUMENT_NAME_INDEX_PROPERTY
protected static final String DOCUMENT_AUTHORS_INDEX_PROPERTY
protected static final String DOCUMENT_SUMMARY_INDEX_PROPERTY
protected static final String DOCUMENT_KEYWORD_INDEX_PROPERTY
protected static final String DOCUMENT_TYPE
public void indexDocument(DocumentBean document) throws IOException
IOExceptionpublic List<String> searchDocuments(String text) throws IOException, org.apache.lucene.queryparser.classic.ParseException
IOExceptionorg.apache.lucene.queryparser.classic.ParseExceptionpublic List<String> searchDocuments(List<String> texts) throws IOException, org.apache.lucene.queryparser.classic.ParseException
IOExceptionorg.apache.lucene.queryparser.classic.ParseExceptionpublic void updateDocument(DocumentBean document) throws IOException
IOExceptionpublic void deleteDocument(String documentId) throws IOException
IOExceptionprotected void cleanIndex()
throws IOException
IOExceptionCopyright © 2014–2015 Ifremer. All rights reserved.