Class ElasticsearchDocumentManagerFactory

java.lang.Object
org.eclipse.jnosql.databases.elasticsearch.communication.ElasticsearchDocumentManagerFactory
All Implemented Interfaces:
AutoCloseable, Function<String,org.eclipse.jnosql.communication.semistructured.DatabaseManager>, org.eclipse.jnosql.communication.semistructured.DatabaseManagerFactory

public class ElasticsearchDocumentManagerFactory extends Object implements org.eclipse.jnosql.communication.semistructured.DatabaseManagerFactory
The Elasticsearch implementation of DatabaseManagerFactory that returns ElasticsearchDocumentManager.

If the index does not exist, this factory tries to load a JSON mapping file from the classpath using the database name.

For example, calling apply(String) with "users" will try to load /users.json. If the file exists, it is used as the index creation request body. Otherwise, the index is created with Elasticsearch defaults.