Skip to content

#create_index! produces error output under correct operation #571

Closed
@dogweather

Description

@dogweather

Given that there's no index, when this is executed:

klass.__elasticsearch__.create_index! force: true

then this is sent to stderr:

[!!!] Index does not exist (Elasticsearch::Transport::Transport::Errors::NotFound)

I believe that nothing should be sent to stderr in this particular case, because we've asked the lib to "create an index, over-writing any potentially existing one". And so there's no error when none exists.

I'm willing to contribute a PR if this issue is approved.

(Relevant code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions