Remove deleted docs

Hi how can I remove those deleted docs from elasticsearch ?

curl -XGET 'http://localhost:9200/_stats/docs?&pretty'
{
  "_shards" : {
    "total" : 10,
    "successful" : 5,
    "failed" : 0
  },
  "_all" : {
    "primaries" : {
      "docs" : {
        "count" : 10710236,
        "deleted" : 2414335
      }
    },
    "total" : {
      "docs" : {
        "count" : 10710236,
        "deleted" : 2414335
      }
    }
  },
  "indices" : {
    "sirene" : {
      "primaries" : {
        "docs" : {
          "count" : 10710236,
          "deleted" : 2414335
        }
      },
      "total" : {
        "docs" : {
          "count" : 10710236,
          "deleted" : 2414335
        }
      }
    }
  }
}

Thanks for your inputs!

They are removed when a merge is happening.

Thanks

I try 'http://localhost:9200/sirene/_forcemerge?only_expunge_deletes=true'

and it seems to be the solution!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.