How to setup Friendly Names in Indexing Service

In order to query Microsoft Indexing Service for custom document properties it is necessary to setup so called Friendly Names for these properties.