What is the Sitecore field name for "template name"?
I'm trying to populate a computed field based on an item's data template using the code sample from the developers site. The IIndexableDataField always comes back null whenever I try any variation of "template name".
I've tried: pIndexable.GetFieldByName("template name") pIndexable.GetFieldByName("templatename") pIndexable.GetFieldByName("_templatename")
What's the real name of the value to get? It's really confusing with the way the field name aliases get hashed into the fields inside the index.
You should use p_Indexable.BuiltinFields.TemplateName; All the 'basic' fields such as template, language, database etc. are coming from BuildInFields.
I've now tried that, but the IIndexable variable doesn't have a set of properties under called BuiltinFields.