Skip to content

Using\testing elasticsearch in blocking mode. #308

@abonec

Description

@abonec

I newbie with elasticsearch and write sample app. It works well but when I write test I need an blocking mode in respect to check results of index documents. Now I use sleep in ruby by 1 second for wait index and it works. But every one sleep my testing is will grow up in time.

Is it possible to pass some param in client which will block operations until it will indexed?

Example of sleep is here: https://github.com/abonec/eta_service/blob/1214b922493d82c3b4de7e56a217296281fa7301/spec/helpers.rb#L9-L12

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