Indexing javadoc

Hello,

I'm building a software portal with documentations. The documentation will be indexed into ES. One kind of document is Javadoc. Is there any "good practice" to index such documents and how should we manage the frame structure ?

Thanks for your advice.

Frédéric