public interface IPuiElasticSearchSearchingService
| Modifier and Type | Method and Description |
|---|---|
Long |
count(Class<? extends es.prodevelop.pui9.model.dto.interfaces.IViewDto> dtoClass,
FilterBuilder filterBuilder)
Get the number of indexed documents that fits the given filter (language
independent)
|
<V extends es.prodevelop.pui9.model.dto.interfaces.IViewDto> |
findForDataGrid(SearchRequest req)
Executes a search to be used in the Grid
|
List<ESSearchResultItem> |
findMultiple(Class<? extends es.prodevelop.pui9.model.dto.interfaces.IViewDto> dtoClass,
FilterBuilder filterBuilder,
OrderBuilder orderBuilder,
PuiLanguage language)
Search for the documents that fits the given filter, in the given order,
within the given index (language)
|
ESSearchResultItem |
findOne(Class<? extends es.prodevelop.pui9.model.dto.interfaces.IViewDto> dtoClass,
FilterBuilder filterBuilder,
OrderBuilder orderBuilder,
PuiLanguage language)
Get a document that fits the given filter, within the given index (language)
|
<N extends Number> |
getMaxValue(Class<? extends es.prodevelop.pui9.model.dto.interfaces.IViewDto> dtoClass,
String column,
FilterBuilder filterBuilder)
Get the maximum value of the given column that fits the given filter
|
Long count(Class<? extends es.prodevelop.pui9.model.dto.interfaces.IViewDto> dtoClass, FilterBuilder filterBuilder) throws PuiElasticSearchSearchException, PuiElasticSearchNoNodesException
dtoClass - The View DTO Class that represents the View to be
searchedfilterBuilder - The filter to apply in the searchPuiElasticSearchSearchException - If an error occurs while searching
the documents that fits the given
filterPuiElasticSearchNoNodesException - If Elastic Search is not connected
to any Node<N extends Number> N getMaxValue(Class<? extends es.prodevelop.pui9.model.dto.interfaces.IViewDto> dtoClass, String column, FilterBuilder filterBuilder) throws PuiElasticSearchSearchException, PuiElasticSearchNoNodesException
dtoClass - The View DTO Class that represents the View to be
searchedcolumn - The column to search the maximum valuefilterBuilder - The filter to apply in the searchPuiElasticSearchSearchException - If an error occurs while searching
the documents that fits the given
filterPuiElasticSearchNoNodesException - If Elastic Search is not connected
to any NodeESSearchResultItem findOne(Class<? extends es.prodevelop.pui9.model.dto.interfaces.IViewDto> dtoClass, FilterBuilder filterBuilder, OrderBuilder orderBuilder, PuiLanguage language) throws PuiElasticSearchSearchException, PuiElasticSearchNoNodesException
dtoClass - The View DTO Class that represents the View to be
searchedfilterBuilder - The filter to apply in the searchorderBuilder - The order of the searchlanguage - The language of the documents (the index is calculated
from it)PuiElasticSearchSearchException - If an error occurs while searching
the documents that fits the given
filterPuiElasticSearchNoNodesException - If Elastic Search is not connected
to any NodeList<ESSearchResultItem> findMultiple(Class<? extends es.prodevelop.pui9.model.dto.interfaces.IViewDto> dtoClass, FilterBuilder filterBuilder, OrderBuilder orderBuilder, PuiLanguage language) throws PuiElasticSearchSearchException, PuiElasticSearchNoNodesException
dtoClass - The View DTO Class that represents the View to be
searchedfilterBuilder - The filter to apply in the searchorderBuilder - The order of the searchlanguage - The language of the documents (the index is calculated
from it)PuiElasticSearchSearchException - If an error occurs while searching
the documents that fits the given
filterPuiElasticSearchNoNodesException - If Elastic Search is not connected
to any Node<V extends es.prodevelop.pui9.model.dto.interfaces.IViewDto> SearchResponse<V> findForDataGrid(SearchRequest req) throws PuiElasticSearchSearchException, PuiElasticSearchNoNodesException
req - The information of the searchSearchResponse formatPuiElasticSearchSearchException - If an error occurs while searching
the documents that fits the given
filterPuiElasticSearchNoNodesException - If Elastic Search is not connected
to any NodeCopyright © 2021. All rights reserved.