public class ElasticsearchAccessFunctionalAdmin extends ElasticsearchAccess
Modifier and Type | Field and Description |
---|---|
static String |
MAPPING_ACCESSCONTRACT_FILE |
static String |
MAPPING_ACCESSION_REGISTER_DETAIL_FILE |
static String |
MAPPING_ACCESSION_REGISTER_SUMMARY_FILE |
static String |
MAPPING_AGENCIES_FILE |
static String |
MAPPING_CONTEXT_FILE |
static String |
MAPPING_FORMAT_FILE |
static String |
MAPPING_INGESTCONTRACT_FILE |
static String |
MAPPING_PROFILE_FILE |
static String |
MAPPING_RULE_FILE |
static String |
MAPPING_SECURITY_PROFILE_FILE |
client, clusterName, default_builder, nodes
Constructor and Description |
---|
ElasticsearchAccessFunctionalAdmin(String clusterName,
List<ElasticsearchNode> nodes) |
Modifier and Type | Method and Description |
---|---|
boolean |
addIndex(FunctionalAdminCollections collection)
Add a type to an index
|
void |
deleteIndex(FunctionalAdminCollections collection)
Delete one index
|
void |
refreshIndex(FunctionalAdminCollections collection)
refresh an index
|
protected org.elasticsearch.action.search.SearchResponse |
search(FunctionalAdminCollections collection,
org.elasticsearch.index.query.QueryBuilder query,
org.elasticsearch.index.query.QueryBuilder filter) |
checkConnection, close, createIndexAndAliasIfAliasNotExists, createIndexWithoutAlias, getClient, getClusterName, getInfo, getNodes, getSettings, settings, switchIndex
public static final String MAPPING_FORMAT_FILE
public static final String MAPPING_RULE_FILE
public static final String MAPPING_INGESTCONTRACT_FILE
public static final String MAPPING_ACCESSCONTRACT_FILE
public static final String MAPPING_AGENCIES_FILE
public static final String MAPPING_PROFILE_FILE
public static final String MAPPING_CONTEXT_FILE
public static final String MAPPING_SECURITY_PROFILE_FILE
public static final String MAPPING_ACCESSION_REGISTER_SUMMARY_FILE
public static final String MAPPING_ACCESSION_REGISTER_DETAIL_FILE
public ElasticsearchAccessFunctionalAdmin(String clusterName, List<ElasticsearchNode> nodes) throws VitamException, IOException
clusterName
- nodes
- VitamException
IOException
public final void deleteIndex(FunctionalAdminCollections collection) throws ReferentialException
collection
- ReferentialException
public final boolean addIndex(FunctionalAdminCollections collection)
collection
- public final void refreshIndex(FunctionalAdminCollections collection)
collection
- protected final org.elasticsearch.action.search.SearchResponse search(FunctionalAdminCollections collection, org.elasticsearch.index.query.QueryBuilder query, org.elasticsearch.index.query.QueryBuilder filter) throws ReferentialException
collection
- query
- as in DSL mode "{ "fieldname" : "value" }" "{ "match" : { "fieldname" : "value" } }" "{ "ids" : { "
values" : [list of id] } }"filter
- ReferentialException
Copyright © 2018 Vitam. All rights reserved.