Java Aspose word create dynamic index for list of data

We have a requirement where we need to generate dynamic index for the mail merge fields Could you please let me know how we can achieve the same. Below is the MailMerge regions we have and we need to create index for COMPANY_NM and finally we need to put all the indexs in a page.

«TableStart:Company»

«COMPANY_NM»

«TableStart:ContactInformation»

«TITLE_NAME» «FIRST_NAME» «LAST_NAME»

«PHONE_NO»

«FAX_NO»

«EMAIL»

@sudharshantcs

Could you please share your expected output document here for our reference? We will then provide you more information about your query.