# Uses of Class
fr.gouv.vitam.common.database.server.elasticsearch.ElasticsearchIndexAlias

Packages that use ElasticsearchIndexAlias
Package
Description
fr.gouv.vitam.common.database.server
Database server package in vitam
fr.gouv.vitam.common.database.server.elasticsearch
Elasticsearch server package in Vitam

- ## Uses of ElasticsearchIndexAlias in fr.gouv.vitam.common.database.server

  Constructors in fr.gouv.vitam.common.database.server with parameters of type ElasticsearchIndexAlias
  Modifier
  Constructor
  Description
  ``
  `DbRequestSingle(VitamCollection<VitamDocument<?>> collection, OntologyLoader ontologyLoader, ElasticsearchIndexAlias elasticsearchIndexAlias)`
  Constructor with VitamCollection

- ## Uses of ElasticsearchIndexAlias in fr.gouv.vitam.common.database.server.elasticsearch

  Methods in fr.gouv.vitam.common.database.server.elasticsearch that return ElasticsearchIndexAlias
  Modifier and Type
  Method
  Description
  `final ElasticsearchIndexAlias`
  ElasticsearchAccess.`createIndexWithoutAlias(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, String elasticsearchConfigurationFile)`
  `ElasticsearchIndexAlias`
  ElasticsearchIndexAlias.`createUniqueIndexName()`
  `static ElasticsearchIndexAlias`
  ElasticsearchIndexAlias.`ofCrossTenantCollection(String collectionName)`
  Builder for collection that store documents of all tenants in same index (functional admin collections)
  `static ElasticsearchIndexAlias`
  ElasticsearchIndexAlias.`ofFullIndexName(String fullIndexName)`
  Stored for building indexes with exact full name (eg.
  `static ElasticsearchIndexAlias`
  ElasticsearchIndexAlias.`ofMultiTenantCollection(String collectionName, int tenantId)`
  Builder for collection that store documents per-tenant indexes (unit/objectgroup/logbookoperation collections when tenant is not in a tenant group)
  `static ElasticsearchIndexAlias`
  ElasticsearchIndexAlias.`ofMultiTenantCollection(String collectionName, String tenantGroupName)`
  Builder for collection that store documents per-tenant-group indexes (unit/objectgroup/logbookoperation collections when tenant is in a tenant group)
  `ElasticsearchIndexAlias`
  ElasticsearchIndexAliasResolver.`resolveIndexName(Integer tenantId)`
  Methods in fr.gouv.vitam.common.database.server.elasticsearch with parameters of type ElasticsearchIndexAlias
  Modifier and Type
  Method
  Description
  `final void`
  ElasticsearchAccess.`createIndexAndAliasIfAliasNotExists(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, String elasticsearchConfigurationFile)`
  `final ElasticsearchIndexAlias`
  ElasticsearchAccess.`createIndexWithoutAlias(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, String elasticsearchConfigurationFile)`
  `void`
  ElasticsearchAccess.`delete(ElasticsearchIndexAlias indexAlias, List<String> ids)`
  `final void`
  ElasticsearchAccess.`deleteIndexByAliasForTesting(ElasticsearchIndexAlias indexAlias)`
  `final void`
  ElasticsearchAccess.`deleteIndexForTesting(ElasticsearchIndexAlias indexAlias)`
  `final boolean`
  ElasticsearchAccess.`existsAlias(ElasticsearchIndexAlias indexAlias)`
  `final boolean`
  ElasticsearchAccess.`existsIndex(ElasticsearchIndexAlias index)`
  `final co.elastic.clients.elasticsearch.indices.GetAliasResponse`
  ElasticsearchAccess.`getAlias(ElasticsearchIndexAlias indexAlias)`
  `void`
  ElasticsearchAccess.`indexEntries(ElasticsearchIndexAlias indexAlias, Collection<? extends org.bson.Document> documents, boolean withRefreshIndex)`
  `final <T> void`
  ElasticsearchAccess.`indexEntry(ElasticsearchIndexAlias indexAlias, String id, VitamDocument<T> vitamDocument)`
  `boolean`
  ElasticsearchIndexAlias.`isValidAliasOfIndex(ElasticsearchIndexAlias indexName)`
  `final void`
  ElasticsearchAccess.`purgeIndexForTesting(ElasticsearchIndexAlias indexAlias)`
  `protected void`
  ElasticsearchAccess.`purgeIndexForTesting(ElasticsearchIndexAlias indexAlias, Integer tenantId)`
  `final void`
  ElasticsearchAccess.`refreshIndex(ElasticsearchIndexAlias indexAlias)`
  `ReindexationOK`
  IndexationHelper.`reindex(com.mongodb.client.MongoCollection<org.bson.Document> collection, ElasticsearchAccess esClient, ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, ElasticsearchCollections elasticsearchCollection, List<Integer> tenantIds, String tenantGroupName, String elasticsearchConfigurationFilePath)`
  reindex a collection on a tenant list with a esmapping file
  `final co.elastic.clients.elasticsearch.core.search.ResponseBody<com.fasterxml.jackson.databind.node.ObjectNode>`
  ElasticsearchAccess.`search(ElasticsearchIndexAlias indexAlias, co.elastic.clients.elasticsearch._types.query_dsl.Query query, String[] esProjection, List<co.elastic.clients.elasticsearch._types.SortOptions> sorts, int offset, Integer limit, Map<String,co.elastic.clients.elasticsearch._types.aggregations.Aggregation> facets)`
  `final co.elastic.clients.elasticsearch.core.search.ResponseBody<com.fasterxml.jackson.databind.node.ObjectNode>`
  ElasticsearchAccess.`search(ElasticsearchIndexAlias indexAlias, co.elastic.clients.elasticsearch._types.query_dsl.Query query, String[] esProjection, List<co.elastic.clients.elasticsearch._types.SortOptions> sorts, int offset, Integer limit, Map<String,co.elastic.clients.elasticsearch._types.aggregations.Aggregation> facets, String scrollId, Integer scrollTimeout, boolean trackTotalHits)`
  `final void`
  ElasticsearchAccess.`switchIndex(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexAlias indexNameToSwitchTo)`
  `SwitchIndexResult`
  IndexationHelper.`switchIndex(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexAlias newIndex, ElasticsearchAccess esClient)`
  switch index, attach a new index to an existing alias
  `<T> void`
  ElasticsearchAccess.`updateEntry(ElasticsearchIndexAlias indexAlias, String id, VitamDocument<T> vitamDocument)`
  Update one element fully
  Method parameters in fr.gouv.vitam.common.database.server.elasticsearch with type arguments of type ElasticsearchIndexAlias
  Modifier and Type
  Method
  Description
  `final co.elastic.clients.elasticsearch.core.search.ResponseBody<com.fasterxml.jackson.databind.node.ObjectNode>`
  ElasticsearchAccess.`searchCrossIndices(Set<ElasticsearchIndexAlias> indexAliases, co.elastic.clients.elasticsearch._types.query_dsl.Query query, String[] esProjection, List<co.elastic.clients.elasticsearch._types.SortOptions> sorts, int offset, Integer limit, Map<String,co.elastic.clients.elasticsearch._types.aggregations.Aggregation> facets, String scrollId, Integer scrollTimeout, boolean trackTotalHits)`