hi you can check the bsp application in se80 btf_ext_demo and test it. there are two sections search and result. just press on search and in the result list select any docuemnt. then it will display the document in the btf editor.
they have designed some buttons by which we can add some extra fields to the editor. may it can help as a starting point.