`ignore` in index creation

I have the following statement:

es.indices.create(index=index_name,ignore=[400,404])

In a sample program that I created, the index got created again though it was already existing on the cluster. So what exactly does 'ignore' do in the creation of index.

An index can not be created again if one already exists.

But the index did get created when I passed the ignore argument

I see.

Ignore parameter means here that if you get back a 400 or 404 status code, don't fail and continue.

So it just appends to the existing index? Cause that is what happened in my execution

It appends what?

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