Skip to content

Issue to discuss index creation #7

@chrispatmore

Description

@chrispatmore

Currently there is a class DefaultIndexBuilder that is an instance of IndexBuilder. The name of this class indicates that it allows you to customise the created index in elastic. However the current implementation only allows you to configure the name of the index to which records are added. It does not allow you to specify anything about the index to be created.

Currently the index is created in elastic automatically when the first document is added and the fields and values are auto determined by the contents of the documents. This would fail if auto index creation were disabled, and as above gives no room to configure the index.

It seems to me there are two options:

  • Either you inform users that they should pre-create indices if they require customisation of them.
  • Or we can update the code to make the use of the IndexBuilder interface clearer and to use that interface to create the indices on start up of the connector

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