public class QuestionsIndexationService extends CoselmarSimpleServiceSupport
Document
or more exactly DocumentBean indexation :
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DOCUMENT_TYPE |
protected static String |
QUESTION_ID_INDEX_PROPERTY |
protected static String |
QUESTION_PRIVACY_INDEX_PROPERTY |
protected static String |
QUESTION_STATUS_INDEX_PROPERTY |
protected static String |
QUESTION_SUMMARY_INDEX_PROPERTY |
protected static String |
QUESTION_THEME_INDEX_PROPERTY |
protected static String |
QUESTION_TITLE_INDEX_PROPERTY |
servicesContext| Constructor and Description |
|---|
QuestionsIndexationService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanIndex() |
void |
deleteQuestion(String documentId) |
void |
indexQuestion(QuestionBean question) |
List<String> |
searchQuestion(QuestionSearchBean searchBean) |
commit, getCoselmarServicesConfig, getCoselmarUserDao, getLuceneUtils, getPersistenceContext, rollback, setServicesContextprotected static final String QUESTION_ID_INDEX_PROPERTY
protected static final String QUESTION_TITLE_INDEX_PROPERTY
protected static final String QUESTION_SUMMARY_INDEX_PROPERTY
protected static final String QUESTION_THEME_INDEX_PROPERTY
protected static final String QUESTION_STATUS_INDEX_PROPERTY
protected static final String QUESTION_PRIVACY_INDEX_PROPERTY
protected static final String DOCUMENT_TYPE
public void indexQuestion(QuestionBean question) throws IOException
IOExceptionpublic List<String> searchQuestion(QuestionSearchBean searchBean) throws IOException, org.apache.lucene.queryparser.classic.ParseException
IOExceptionorg.apache.lucene.queryparser.classic.ParseExceptionpublic void deleteQuestion(String documentId) throws IOException
IOExceptionprotected void cleanIndex()
throws IOException
IOExceptionCopyright © 2014–2015 Ifremer. All rights reserved.