Issue Storing Large Documents in Elasticsearch

I'm facing an issue while trying to index large data objects in Elasticsearch. When the object size increases (possibly due to a large metadata field), the document fails to get indexed, but no clear error is returned in some cases.

  • Elasticsearch Version: (8.15.2)
  • Client used: (.NET)
  • Index mapping: predefined
  • Approximate document size: (e.g., >100 kb JSON payload)

You should have an error with the reason why the message was rejected, are you capturing the response error in your client?

What your mapping looks like? Please share it.

No i'm not getting any error but whenever i store any small object its stored but not large object

If Elasticsearch rejects a document it returns an error, you need to capture the Elasticsearch response to see the reason.

I'm not familiar with the .NET client, so not sure how you do that with this client.