public class ElasticSearchTemplate extends Object
This class represents a content template for Elasticsearch request.
The template contains placeholders which are replaced by the build method.
| Constructor and Description |
|---|
ElasticSearchTemplate(Path pathTemplate)
Constructs an
ElasticSearchTemplate instance from the specified path |
| Modifier and Type | Method and Description |
|---|---|
String |
build(Map<String,String> mapPlaceholderValues)
Builds the final request content by replacing the placeholders in the template with the specified values
|
public ElasticSearchTemplate(Path pathTemplate)
ElasticSearchTemplate instance from the specified pathpathTemplate - the path containing the request content templatepublic String build(Map<String,String> mapPlaceholderValues)
mapPlaceholderValues - the values used to replace the placeholders in the templateCopyright © 2022 City of Paris. All rights reserved.