Gravatar for lautaro.bonetto@gmail.com

Question by Lautaro Bonetto, Mar 10, 2015 10:22 AM

Which is the rule that Coveo Free for Sitecore is using to assign the name to the fields?

Morning, I have the free Coveo version for Sitecore and I want to use the Coveo Javascript UI on my project. I'm seeing that the name of the fields follow a rule that I cannot understand. Please, could you explain me that rule? I want to make a reference to them on the javascript code and I have to know how is going to be the name of the future fields.

Thanks, Lautaro

1 Reply
Gravatar for vlambert@coveo.com

Answer by vince, Mar 10, 2015 10:49 AM

The field names are decorated based on the source indexed. You can head to this page for more detailed information and how to translate the field names to Coveo field names:

https://developers.coveo.com/display/SC201503/Displaying+a+Field

Gravatar for lautaro.bonetto@gmail.com

Comment by Lautaro Bonetto, Mar 10, 2015 12:05 PM

Thanks you!! Is there a similar helper method on the Coveo Javascript framework?

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Mar 10, 2015 1:43 PM

No. This is because the helper method needs to do server side work:

  1. Determine whether the field should be decorated or not by looking at the Coveo.SearchProvider.config file settings;
  2. Determine the Sitecore context database;
  3. Find which Coveo index is indexing this database;
  4. Find the name of the Coveo source for this Coveo index;
  5. Compute the hash of this Coveo source.
Ask a question