Indexed/Computed field name ends with 5 unique numbers

I have created a computed field and triggered a coveo cloud indexing. i am able to index the computed field. when i was looking at the field name , i found that it was starts with "f" and ends with 5 numbers.

for every source ( DEV,STAGE) these filed name is different. I am using JS framework to fetch the data based on field name. I need to change the field name explicitly for every data source.

1 Reply

Coveo for Sitecore adds a prefix ( f ) and a suffix (five number that we call the "Source Hash", 00000) to ensure that the fields have different configurations depending on the source.

For instance, say you want to remove the "IsFacet" configuration for a field "MyCustomField" that is both in a master index and web index (this one is public).

You remove it in your master instance, rebuild your indexes, and now your "MyCustomField" is no longer configured as a facet. You have updated your templates in master to reflect this change and now everything works fine in master, but you are not quite ready to publish this change.

What happens in your web instance? Since it uses the same field, your public instance will be broken until you publish because it still uses the code from before the change done in master, but the field configuration has changed.

This is the reason why you need to translate the field for a specific instance.