I am implementing elasticSearch and testing it currently. I see an issue with some records when created via cleansePut are not searchable. This does not happen to all records. When looked at the Index on the elastic search server, I see that the parent object is missing and just the child objects exists. Say for example, we have Customer (First Name, Last Name and ID) as parent and there are address and email records as child records. When I check the database, the Customer record and the all children are properly created. However, the Index does not have Parent object. Also the '_Version' is also not same for the ones that are working. When I run the below on elastic search directly I get the below results, it's the same cleansePut calls (Total 5 cleansePut calls and one to set consolidation ind) that created both the records, however, the index is different for both.
1. Is there a way to troubleshoot the index creation process? has any one seen this behaviour?
2. How can we Identify how may records have this malformed index and are not searchable? We have thousands of records created every day and few records has this issue. I came to know when the QA Team reported a record was not searchable by Name. So I do not know how may records has this issue.
This is an example of the one that is working (all elements in the index are correct and searchable using the parent object):
Here's an example of the one that is missing the parent elements,
Thanks in advance for your help.