Class TurElasticsearchUtils
java.lang.Object
com.viglet.turing.elasticsearch.TurElasticsearchUtils
Static utility methods for Elasticsearch index management.
Mirrors
TurLuceneUtils for the Elasticsearch engine.- Since:
- 2026.1
- Author:
- Alexandre Oliveira
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateIndex(String endpointUrl, String indexName) Creates an Elasticsearch index if it does not already exist.static voidcreateIndex(String endpointUrl, String indexName, Map<String, TurSEFieldType> fieldTypes) Creates an Elasticsearch index with explicit field type mappings.static voiddeleteIndex(String endpointUrl, String indexName) Deletes an Elasticsearch index if it exists.
-
Method Details
-
createIndex
-
createIndex
public static void createIndex(String endpointUrl, String indexName, Map<String, TurSEFieldType> fieldTypes) Creates an Elasticsearch index with explicit field type mappings. STRING/ARRAY → keyword, TEXT → text+keyword sub-field, BOOL → boolean, INT → integer, LONG/DATE → long/date, FLOAT → float, DOUBLE/CURRENCY → double.- Parameters:
endpointUrl- the Elasticsearch endpoint URLindexName- the name of the index to createfieldTypes- map of field name → Turing field type
-
deleteIndex
-