I have some text documents which contain paragraphs, sections, etc and I know/can extract the name of the paragraphs and the content itself.
I would like to index the content of the documents in elasticsearch but in a hierarchical mode. There is not a fixed indentation in the documents, I mean there could be different types of section/sub-sections imbrications.
How can I do this? The children-parent relationship or nested objects is not working because I don't know from the beginning the number of nested paragraphs.
P.S the language programming is java for this implementation Thanks!