We use the content search web part with a custom display template to show our documents throughout our intranet based on various criteria such as file type, language, Document Type (custom column) etc.

Now we have a request to display a column which contains the file's auto-generated Document ID. Furthermore this column should be clickable as well so the user gets re-directed to the file.

I am currently not able to figure out which property to use for this or if this requires a combination of maybe another custom column and a crawled property?

Any help is appreciated!

1 Answer 1


First you have to ensure that the managed property is mapped correctly, as in this. As far as the link goes you can use a direct link, or cheat an reuse the default link 😉

  • Thx for answering. The first part we already implemented. I can search by DocID and it works fine. When I add DocID to the custom Property Mappings of the Content Search Web part it shows me a completely different ID - also the ID isn't clickable :( I fail to see what the second link can help me here? Which property would it be? >>cheat and reuse the default link Hmmm I didn't get that either :( sorry
    – AM2FTW
    Commented Aug 21, 2018 at 6:41
  • 1
    It sounds like DocID is not mapped correctly. Try to inspect the properties returned by the search using the Sharepoint search query tool, koskila.net/2017/03/13/… Commented Aug 21, 2018 at 10:08
  • Thanks ... It seems the property I was looking for is "dlcDocIdOWSTEXT" for the ID itself and "dlcDocIdUrlOWSURLH" for the URL. Also Great tool .. wish SharePoint was easier to use though ;) Thanks!!
    – AM2FTW
    Commented Aug 21, 2018 at 13:27
  • The SharePoint Search query tool should be bundled with any version of SharePoint 😀 Great that it solved your issue Commented Aug 21, 2018 at 17:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.