Gravatar for loebrandy@gmail.com

Question by rloeb, Aug 22, 2016 10:45 AM

Sitecore systitle mapping and isFacet sorting

We have some questions about @systitle for sitecore sources:

  1. It seems like @systitle is derived from Item.Name fore sitecore sources. However, throughout our application we use a template with a "Title" field, and would prefer @systitle map to this. The reason is our Title field contains "uncleansed" characters that sitecore strips out when it creates the Item.Name property. Also, we have external data sources for which we have code already using the @systitle field, although the source may not have its own "title" field. We're trying to unite the "title" concept across our sources and @systitle field seemed like the way to go, except it isn't aligned with our true "title" concept in Sitecore. a. Is there a simple config setting we can change to do this, i.e. point @systitle to our Item.Fields["Title"] instead of Item.Name? b. Or could we cause @systitle to be a computed field where we could force it to fall back to Item.Name only if "Title" isn't available for the item? c. Is it possible to use aliases per source? E.g. our sitecore source alias "Title" to "Title" but all our other sources alias "Title" to @systitle?

  2. We need to be able to sort and startswith @systitle. a. Is turning it into a facet field only possible with the admin gui, or is there a way to do it in the config file as with e.g. our computed fields or non-system fields? We try but it doesn't seem to take.

1 Reply
Gravatar for sbelzile@coveo.com

Answer by Sébastien Belzile, Aug 22, 2016 11:32 AM

Answer to question 1:

  • "systitle" and the "title" Coveo fields should be the same.
  • The field which is set as title is not Item.Name, but Item.DisplayName.
  • This article might be useful to you.
  • Aliases are not supported in C4SC, but this would be a great feature to add, I will request this to the Sitecore team.

Answer to question 2:

C4SC does not edit CES system fields. In other words, you need to configure this field as facet using the administration console. In your Sitecore configuration, ensure that the field is defined in the externalFields section of your configuration if you need to manipulate it from Sitecore side.

Gravatar for loebrandy@gmail.com

Comment by rloeb, Aug 22, 2016 11:50 AM

Thanks, to clarify,

  1. You believe we could tap into the pipeline and have systitle reflect whatever property of the indexableitem we want, i.e. in our case Title instead of DisplayName?

  2. If we set @systitle to be an external field we can use config file to make it facetable, otherwise we have to manually re-set it every index rebuild using the admin gui?

Gravatar for sbelzile@coveo.com

Comment by Sébastien Belzile, Aug 22, 2016 12:13 PM

Answer to question 1:

Should work, though I have not tested it. Otherwise, you could simply edit your result template to use "systitle" instead.

Answer to question 2:

No. As I mentionned, C4SC will not edit the configuration of its system fields. In other words, you will not have to reset it all the time.

You will need to add an item in the bucket/facet folder in order to use the field in Coveo facet components.

Gravatar for loebrandy@gmail.com

Comment by rloeb, Sep 16, 2016 11:17 AM

We finally got around to addressing this, and your suggestion worked well. Thanks again.

Ask a question