const Factory = require("es-test-helper")
const config = {
connection: {
host: "http://localhost:9200"
},
indices: [
{
prefix: "offers-",
dayClusterFormat: "YYYY-MM-DD",
mapping: {
},
},
// wihtout cluster
{
name: "not_clustered",
mapping: {
},
},
// custom method
{
name: () => "abc" + "123",
mapping: {
},
}
]
}
const EsTestHelper = Factory(config)
EsTestHelper.createIndices()
// create all elasticsearch indices
EsTestHelper.dropAll()
// drop all elasticsearch indices
-
Notifications
You must be signed in to change notification settings - Fork 0
admatic-tool/es-test-helper
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published