We have templateid and _template fields but sometimes _template is missing?
We usually see both @ftemplateid and @z95xtemplate in our sitecore sources, and built some queries around @z95xtemplate.
We recently noticed that some Items were missing @z95xtemplate despite having @ftemplateid.
I don't think there's any particular reason we chose one over the other, but would prefer to not change code and also understand why this is happening. We've noticed it seems to occur with Items that were imported into Sitecore as part of a high-volume bulk load process, but we're not sure if there's a solid connection.
I'm looking at the code:
The value that Coveo set for
_Template is read directly from the
SitecoreIndexableItem, which returns the property
The value that Coveo set for the field
TemplateId, is read from the same property.
The difference between the two is:
TemplateIdis converted by calling
_Templateis sent to Sitecore's converters defined in the default index configuration, which in Sitecore 8.1 update 3 calls
None of my instances reproduce the issue. Could you tell me:
- Which version of Sitecore are you using?
- Which version of Coveo are you using? On-premises? Cloud? Build number?
- Is there a difference between the serialized version of an item that reproduce the issue and an item that does not?
- What happens if you re-index the items reproducing the issue?