@Component public class ElasticsearchFunctions extends Object implements SearchFunctions
| Modifier and Type | Field and Description |
|---|---|
static String |
BDEF_NAME_AGGS
The business object definition name sub agg
|
static String |
BDEF_NAME_FIELD
business object definition name field
|
static String |
BUSINESS_OBJECT_DEFINITION_SORT_FIELD
Sort the business object definition by name
|
static String |
DATA_PROVIDER_NAME_SOURCE
Source string for the dataProvider name
|
static String |
DESCRIPTION_SOURCE
Source string for the description
|
static String |
DISPLAY_NAME_SOURCE
Source string for the display name
|
static int |
ELASTIC_SEARCH_SCROLL_KEEP_ALIVE_TIME
Scroll keep alive in milliseconds
|
static int |
ELASTIC_SEARCH_SCROLL_PAGE_SIZE
Page size
|
static String |
NAME_SOURCE
Source string for the name
|
static String |
NAMESPACE_CODE_AGGS
The namespace code sub agg
|
static String |
NAMESPACE_CODE_SORT_FIELD
Raw field for the namespace code
|
static String |
NAMESPACE_CODE_SOURCE
Source string for the namespace code
|
static String |
NAMESPACE_FIELD
namespace field
|
static String |
NESTED_BDEFTAGS_PATH
The nested path of business object definition tags
|
static String |
SEARCH_INDEX_BUSINESS_OBJECT_DEFINITION_ID_KEY
The business object definition id search index key
|
static String |
TAG_CODE_AGGREGATION
The user defined tag code sub aggregation name.
|
static String |
TAG_CODE_FIELD
The tag code field
|
static String |
TAG_FACET
The tag Facet Field name
|
static String |
TAG_FACET_AGGS
The nested aggregation name for tag facet.
|
static String |
TAG_NAME_AGGREGATION
The user defined tag display name sub aggregation name.
|
static String |
TAG_NAME_FIELD
The tag display name field
|
static String |
TAG_TYPE_FACET_AGGS
The user defined agg name for tag type facet.
|
static String |
TAGTYPE_CODE_AGGREGATION
The user defined tag type code sub aggregation name.
|
static String |
TAGTYPE_CODE_FIELD
The tag type code field
|
static String |
TAGTYPE_NAME_AGGREGATION
The user defined tag type display name sub aggregation name.
|
static String |
TAGTYPE_NAME_FIELD
The tag type display name field
|
| Constructor and Description |
|---|
ElasticsearchFunctions() |
| Modifier and Type | Method and Description |
|---|---|
TriConsumer<String,String,Map<String,String>> |
getCreateIndexDocumentsFunction()
The create index documents function will take as arguments the index name, document type, and a map of new documents.
|
TriConsumer<String,String,String> |
getCreateIndexFunction()
The create index function will take as arguments the index name, document type, and mapping and will create a new index.
|
TriConsumer<String,String,String> |
getDeleteDocumentByIdFunction()
The delete document by id function will delete a document in the index by the document id.
|
TriConsumer<String,String,List<Integer>> |
getDeleteIndexDocumentsFunction()
The delete index documents function will delete a list of document in the index by a list of document ids.
|
Consumer<String> |
getDeleteIndexFunction()
The delete index function will take as an argument the index name and will delete the index.
|
TriFunction<String,String,Set<String>,ElasticsearchResponseDto> |
getFindAllBusinessObjectDefinitionsFunction()
The find all business object definitions function will return all business object definition entities in the search index.
|
BiFunction<String,String,List<String>> |
getIdsInIndexFunction()
The ids in index function will take as arguments the index name and the document type and will return a list of all the ids in the index.
|
Predicate<String> |
getIndexExistsFunction()
The index exists predicate will take as an argument the index name and will return tree if the index exists and false otherwise.
|
QuadConsumer<String,String,String,String> |
getIndexFunction()
The index function will take as arguments indexName, documentType, id, json and add the document to the index.
|
QuadPredicate<String,String,String,String> |
getIsValidFunction()
The isValid function will take as arguments indexName, documentType, id, json and validate the document against the index and return true if the document
is valid and false otherwise.
|
BiFunction<String,String,Long> |
getNumberOfTypesInIndexFunction()
The number of types in index function will take as arguments the index name and the document type and will return the number of documents in the index.
|
QuadFunction<String,String,List<List<TagEntity>>,Set<String>,ElasticsearchResponseDto> |
getSearchBusinessObjectDefinitionsByTagsFunction()
The search business object definitions by tags function will take a list of tag entities list and return a list of business object definition entities.
|
TriConsumer<String,String,Map<String,String>> |
getUpdateIndexDocumentsFunction()
The update index documents function will take as arguments the index name, document type, and a map of documents to update.
|
QuadConsumer<String,String,String,String> |
getValidateFunction()
The validate function will take as arguments indexName, documentType, id, json and validate the document against the index.
|
public static final int ELASTIC_SEARCH_SCROLL_PAGE_SIZE
public static final int ELASTIC_SEARCH_SCROLL_KEEP_ALIVE_TIME
public static final String BUSINESS_OBJECT_DEFINITION_SORT_FIELD
public static final String SEARCH_INDEX_BUSINESS_OBJECT_DEFINITION_ID_KEY
public static final String DATA_PROVIDER_NAME_SOURCE
public static final String DESCRIPTION_SOURCE
public static final String DISPLAY_NAME_SOURCE
public static final String NAME_SOURCE
public static final String NAMESPACE_CODE_SOURCE
public static final String NAMESPACE_CODE_SORT_FIELD
public static final String NESTED_BDEFTAGS_PATH
public static final String TAGTYPE_CODE_FIELD
public static final String TAGTYPE_NAME_FIELD
public static final String TAG_CODE_FIELD
public static final String TAG_NAME_FIELD
public static final String TAG_FACET_AGGS
public static final String TAGTYPE_CODE_AGGREGATION
public static final String TAGTYPE_NAME_AGGREGATION
public static final String TAG_CODE_AGGREGATION
public static final String TAG_NAME_AGGREGATION
public static final String TAG_FACET
public static final String TAG_TYPE_FACET_AGGS
public static final String NAMESPACE_CODE_AGGS
public static final String BDEF_NAME_AGGS
public static final String NAMESPACE_FIELD
public static final String BDEF_NAME_FIELD
public QuadConsumer<String,String,String,String> getIndexFunction()
SearchFunctionsgetIndexFunction in interface SearchFunctionspublic QuadConsumer<String,String,String,String> getValidateFunction()
SearchFunctionsgetValidateFunction in interface SearchFunctionspublic QuadPredicate<String,String,String,String> getIsValidFunction()
SearchFunctionsgetIsValidFunction in interface SearchFunctionspublic Predicate<String> getIndexExistsFunction()
SearchFunctionsgetIndexExistsFunction in interface SearchFunctionspublic Consumer<String> getDeleteIndexFunction()
SearchFunctionsgetDeleteIndexFunction in interface SearchFunctionspublic TriConsumer<String,String,Map<String,String>> getCreateIndexDocumentsFunction()
SearchFunctionsgetCreateIndexDocumentsFunction in interface SearchFunctionspublic TriConsumer<String,String,String> getCreateIndexFunction()
SearchFunctionsgetCreateIndexFunction in interface SearchFunctionspublic TriConsumer<String,String,String> getDeleteDocumentByIdFunction()
SearchFunctionsgetDeleteDocumentByIdFunction in interface SearchFunctionspublic TriConsumer<String,String,List<Integer>> getDeleteIndexDocumentsFunction()
SearchFunctionsgetDeleteIndexDocumentsFunction in interface SearchFunctionspublic BiFunction<String,String,Long> getNumberOfTypesInIndexFunction()
SearchFunctionsgetNumberOfTypesInIndexFunction in interface SearchFunctionspublic BiFunction<String,String,List<String>> getIdsInIndexFunction()
SearchFunctionsgetIdsInIndexFunction in interface SearchFunctionspublic TriFunction<String,String,Set<String>,ElasticsearchResponseDto> getFindAllBusinessObjectDefinitionsFunction()
SearchFunctionsgetFindAllBusinessObjectDefinitionsFunction in interface SearchFunctionspublic QuadFunction<String,String,List<List<TagEntity>>,Set<String>,ElasticsearchResponseDto> getSearchBusinessObjectDefinitionsByTagsFunction()
SearchFunctionsgetSearchBusinessObjectDefinitionsByTagsFunction in interface SearchFunctionspublic TriConsumer<String,String,Map<String,String>> getUpdateIndexDocumentsFunction()
SearchFunctionsgetUpdateIndexDocumentsFunction in interface SearchFunctionsCopyright © 2017. All rights reserved.