Class ElasticsearchAccessFunctionalAdmin
- java.lang.Object
-
- fr.gouv.vitam.common.database.server.elasticsearch.ElasticsearchAccess
-
- fr.gouv.vitam.functional.administration.common.server.ElasticsearchAccessFunctionalAdmin
-
- All Implemented Interfaces:
DatabaseConnection
public class ElasticsearchAccessFunctionalAdmin extends ElasticsearchAccess
ElasticSearch model with MongoDB as main database
-
-
Field Summary
-
Fields inherited from class fr.gouv.vitam.common.database.server.elasticsearch.ElasticsearchAccess
clusterName, DEFAULT_LIMIT_SCROLL, DEFAULT_SCROLL_TIMEOUT, nodes, SCROLL_ACTIVATE_KEYWORD
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchAccessFunctionalAdmin(java.lang.String clusterName, java.util.List<ElasticsearchNode> nodes, ElasticsearchFunctionalAdminIndexManager indexManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIndex(FunctionalAdminCollections collection)
Add a type to an indexstatic void
ensureIndex()
Methods adding Indexesprotected org.elasticsearch.action.search.SearchResponse
search(FunctionalAdminCollections collection, org.elasticsearch.index.query.QueryBuilder query, org.elasticsearch.index.query.QueryBuilder filter)
-
Methods inherited from class fr.gouv.vitam.common.database.server.elasticsearch.ElasticsearchAccess
checkConnection, clearScroll, close, createIndexAndAliasIfAliasNotExists, createIndexWithoutAlias, delete, deleteIndexByAliasForTesting, deleteIndexForTesting, existsAlias, existsIndex, getAlias, getClient, getClusterName, getInfo, getNodes, indexEntries, indexEntry, purgeIndexForTesting, purgeIndexForTesting, refreshIndex, search, search, searchCrossIndices, switchIndex, updateEntry
-
-
-
-
Constructor Detail
-
ElasticsearchAccessFunctionalAdmin
public ElasticsearchAccessFunctionalAdmin(java.lang.String clusterName, java.util.List<ElasticsearchNode> nodes, ElasticsearchFunctionalAdminIndexManager indexManager) throws VitamException
- Parameters:
clusterName
-nodes
-indexManager
-- Throws:
VitamException
-
-
Method Detail
-
addIndex
public final void addIndex(FunctionalAdminCollections collection) throws ReferentialException
Add a type to an index- Parameters:
collection
-- Throws:
ReferentialException
-
search
protected final org.elasticsearch.action.search.SearchResponse search(FunctionalAdminCollections collection, org.elasticsearch.index.query.QueryBuilder query, org.elasticsearch.index.query.QueryBuilder filter) throws ReferentialException, BadRequestException
- Parameters:
collection
-query
- as in DSL mode "{ "fieldname" : "value" }" "{ "match" : { "fieldname" : "value" } }" "{ "ids" : { " values" : [list of id] } }"filter
-- Returns:
- a structure as ResultInterface
- Throws:
ReferentialException
BadRequestException
-
ensureIndex
public static void ensureIndex()
Methods adding Indexes
-
-