@Component public class PuiElasticSearchDocumentService extends AbstractPuiElasticSearchService implements IPuiElasticSearchDocumentService
daoRegistry, logger, puiElasticSearchEnablement, STRING_SEPARATOR| Constructor and Description |
|---|
PuiElasticSearchDocumentService() |
| Modifier and Type | Method and Description |
|---|---|
void |
bulkInsertDocument(List<es.prodevelop.pui9.model.dto.interfaces.IViewDto> dtoList,
PuiLanguage language)
Inserts the given DTO list into ElasticSearch.
|
void |
deleteDocument(es.prodevelop.pui9.model.dto.interfaces.ITableDto dtoPk,
String view,
es.prodevelop.pui9.filter.FilterGroup pkFilter)
Deletes the given DTO from ElasticSearch
|
void |
insertDocument(es.prodevelop.pui9.model.dto.interfaces.ITableDto dtoPk,
String view,
es.prodevelop.pui9.filter.FilterGroup pkFilter)
Inserts the given DTO into ElasticSearch
|
void |
updateDocument(es.prodevelop.pui9.model.dto.interfaces.ITableDto dtoPk,
String view,
es.prodevelop.pui9.filter.FilterGroup pkFilter)
Updates the given DTO into ElasticSearch
|
getClient, getIndexesForDto, getIndexForLanguage, getIndexPrefix, getLanguageFromIndex, isTextTermpublic void insertDocument(es.prodevelop.pui9.model.dto.interfaces.ITableDto dtoPk,
String view,
es.prodevelop.pui9.filter.FilterGroup pkFilter)
IPuiElasticSearchDocumentServiceinsertDocument in interface IPuiElasticSearchDocumentServicedtoPk - The Table DTO to be indexedview - The view to be indexed, where the DTO participatespkFilter - The PK filter of the given DTOpublic void updateDocument(es.prodevelop.pui9.model.dto.interfaces.ITableDto dtoPk,
String view,
es.prodevelop.pui9.filter.FilterGroup pkFilter)
IPuiElasticSearchDocumentServiceupdateDocument in interface IPuiElasticSearchDocumentServicedtoPk - The Table DTO to be indexedview - The view to be indexed, where the DTO participatespkFilter - The PK filter of the given DTOpublic void deleteDocument(es.prodevelop.pui9.model.dto.interfaces.ITableDto dtoPk,
String view,
es.prodevelop.pui9.filter.FilterGroup pkFilter)
IPuiElasticSearchDocumentServicedeleteDocument in interface IPuiElasticSearchDocumentServicedtoPk - The Table DTO to be indexedview - The view to be indexed, where the DTO participatespkFilter - The PK filter of the given DTOpublic void bulkInsertDocument(List<es.prodevelop.pui9.model.dto.interfaces.IViewDto> dtoList, PuiLanguage language) throws PuiElasticSearchNoNodesException, PuiElasticSearchInsertDocumentException
IPuiElasticSearchDocumentServicebulkInsertDocument in interface IPuiElasticSearchDocumentServicedtoList - The List of View DTO to be insertedlanguage - The language of the DTO to choose the correct indexPuiElasticSearchNoNodesException - If Elastic Search is not
connected to any NodePuiElasticSearchInsertDocumentException - If any error occurs while
inserting the documentCopyright © 2020. All rights reserved.