I have a custom indexing connector with Entities associated via AssociationNavigator method. In order for Search (of SharePoint 2013) to crawl the associated entity, we need to set either the 'DirectoryLink' property or the 'AttachmentAccessor' property in the associated entity as mentioned here
When I set the DirectoryLink property, the search crawls both the associated entity (child entity) and the parent entity.
However, when I set the child entity to be crawled as attachment, with AttachmentAccessor property, the crawler just crawls the Parent entity and ignores the associated entity, thus it does not get indexed.
Is this some issue with custom connectors? The same works fine if the connector is a .net connector.
I tested the same with Microsoft's sample by changing the DirectoryLink under the File entity to AttachmentAccessor. The files now are never crawled, and instead the crawler stops at folder level.