Skip to content

Config function should allow for more options #2

@freshteapot

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
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions