How to increase max length of a document to be indexed from default 2kb to higher value?

I am using elastic search through python. When I try to index a document of size 120kb, i get an error in python as (image attached)

when I look at Elastic search 6.2.3 logs(image attached), i see that max length is at 2kb but my document size is 120kb. So I would like to know how I can increase value of max lenth, to index successfully or if there is anything else going wrong.

es1

Thanks in advance!!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.