If u are getting below error while indexing:
{
"error": {
"root_cause": [
{
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
}
| import android.os.CountDownTimer | |
| import androidx.activity.OnBackPressedCallback | |
| import androidx.fragment.app.FragmentActivity | |
| import java.util.concurrent.atomic.AtomicBoolean | |
| fun FragmentActivity.addOnBackPressedCallbackWithInterval( | |
| millisToBack: Long, | |
| firstPressed: () -> Unit | |
| ) { | |
| onBackPressedDispatcher.addCallback( |
If u are getting below error while indexing:
{
"error": {
"root_cause": [
{
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
}