Skip to content

Config function should allow for more options #2

Description

@freshteapot

Currently our config function uses a very particular object mapping.

Would it be better to assume the object coming in is the "elasticsearch" friendly object and then we map it to the desired config settings or use defaults that we want to see used.

I got to this because I wanted to make "client" close. To achieve this I manually added the property "maxKeepAliveRequests".

    client = new elasticsearch.Client({
        host: config.db.url,
        maxKeepAliveRequests: 1
    });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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