How to overwrite the default title using custom post/pre conversion script
For one of our source, we want overwrite the default "Title" value coming from source by some custom field. In my post conversion script I have tried below options but nothing seems to working out.
#1 DocumentInfo.SetFieldValue("Title", newTitleFromFileName);
#2 DocumentInfo.SetFieldValue("coveo_Title", newTitleFromFileName);
#3 DocumentInfo.SetFieldValue("systitle", newTitleFromFileName);
Can anyone please help, how can we overwrite the original "Title" value
CES Converter API documentation archive: https://docs.coveo.com/en/2692//preconversion+scriptsarchived-content/converter-api---ces-7-0
From this documentation, I was able to find that the correct syntax is `DocumentInfo.Title = "value"`.
The reason is that title is not only a field on the indexed documents but it is primarily a document property. You have to set it from the property and it will propagate to the field as well.