Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] support dynamic schema for creating/updating document #527

Open
zhzhou-tibco opened this issue Jun 13, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@zhzhou-tibco
Copy link

Is your feature request related to a problem?

List opsList = new ArrayList<>();
for (JSONObject event : events) {
BulkOperation op = new BulkOperation.Builder().create(o -> o
.index(indexName.toLowerCase())
.document(event)
).build();
opsList.add(op);
}

BulkRequest bulkRequest = new BulkRequest.Builder().operations(opsList).build();
    BulkResponse bulkResponse = client.bulk(bulkRequest);

Here, I am trying to create new documents. Instead of using a customer class, I am using the json as the document input. The document will be created without any content.

What solution would you like?

I would like to create document API to accept the Json type input

What alternatives have you considered?

A clear and concise description of any alternative solutions or features you've considered.

Do you have any additional context?

Add any other context or screenshots about the feature request here.

@zhzhou-tibco zhzhou-tibco added enhancement New feature or request untriaged labels Jun 13, 2023
@wbeckler
Copy link

Take a look through some of the open issues. There are a few proposals to solve this issue and some people working on it. Maybe you could comment on those and see if they are aimed in the right direction to help you?

@wbeckler
Copy link

wbeckler commented Aug 2, 2023

Here's an example: #377

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants