org.biacode.escommons.toolkit.component.EsCommonsClientWrapper.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of escommons-toolkit Show documentation
Show all versions of escommons-toolkit Show documentation
Elasticsearch commons library.
package org.biacode.escommons.toolkit.component
import org.elasticsearch.common.settings.Settings
/**
* Created by Arthur Asatryan.
* Date: 7/10/17
* Time: 6:11 PM
*/
interface EsCommonsClientWrapper {
fun createIndex(indexName: String, mappingsName: String): Boolean
fun createIndex(indexName: String, mappingsName: String, settings: Settings): Boolean
fun getIndices(): Set
fun refreshIndex(indexName: String)
fun addAlias(indexName: String, aliasName: String): Boolean
fun removeAlias(indexName: String, aliasName: String): Boolean
fun deleteIndices(vararg indexName: String): Boolean
fun indexExists(indexName: String): Boolean
}