How to get index structure to match sitecore tree
After setting up sitecore for coveo 4 on different scaled environments I often get different index structures and can't pinpoint what dictates them.
As an example, on a test environment (environment 1), after running a full index rebuild through the index manager, I get a structure with all documents directly under the index name folder:
While for environment 2 the documents are indeed more organized but there's an unintended separation between http - for content items - and https - for media and global items - which I find strange. On top of that, the media items appear under a shell folder even though that's not where they live in the sitecore tree:
All document links work correctly when queried from Sitecore so as far as I can tell, even the Media documents.
Can someone offer information on what might cause this type of discrepancy? I am looking to understand the issue so that in the end the index matches the sitecore tree as closely as possible.