如何在python-elasticsearch中刷新文档update_by_query api

时间:2019-05-16 03:04:57

标签: python elasticsearch

当我更新文档时,更新文档字段始终会超过30秒, 我在python API中使用了刷新参数,但是失败了

使用refresh = True

    # Login with AppRole
              path "auth/approle/login" {
               capabilities = [ "create", "read" ]
                  }

             path "aws/sts/*" {
                capabilities = [ "read", "update" ]
                  }

                   path "secret/aws/*" {
                      capabilities = ["read"]
                    }

                 path "aws/creds/*" {
             capabilities = [ "read", "update" ]
              }

   stage('terraform plan') {
      steps {
        script {
          wrap([$class: 'VaultBuildWrapper', configuration: 
      utility_vault_approle_config(), vaultSecrets: 
      utility_vault_secrets(env.VAULT_ROLE_NAME)]) {
              withCredentials([string(credentialsId: 'VAULTTFTOKEN', 
      variable: 'VAULT_TOKEN')]) {
                sh "~/bin/aws sts get-caller-identity"
                sh "${env.TERRAFORM_HOME} plan "
              }

如何在python-elasticsearch update_by_query API中使用刷新

0 个答案:

没有答案