Gravatar for achmedrauff.abdulrahim@3ds.com

Question by Achmed Rauff, Jan 28, 2015 3:31 AM

Cleaning display result title.

I have indexed a websource that contains PDF and PPTX files. My problem is that the results displayed is by file name and "%20" is displayed to replace spaces. I know it is possible to clean this up using a post conversion vbs script but exactly how do I do it?

Does anyone have a sample that they have already done before?

1 Reply
Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, Jan 28, 2015 3:41 AM

You could probably do the cleanup while rendering results. For example, in the JS UI you can do something like <%= decodeURIComponent(raw.sysfilename) %> to unescape the filename.

Gravatar for achmedrauff.abdulrahim@3ds.com

Comment by Achmed Rauff, Jan 30, 2015 3:12 AM

thank you for your suggestion but I would prefer to use post conversion scripting instead of having to modify the codes in UI. We are using 7.0 x64 Build 7022.0

Gravatar for mlaporte@coveo.com

Comment by Martin Laporte, Jan 30, 2015 7:47 AM

You can find some info about post conversion scripts here:

https://developers.coveo.com/display/Converter/Postconversion+Script+Samples

http://onlinehelp.coveo.com/en/ces/7.0/administrator/addingapostconversion_script.htm

Ask a question