How to add search fields which are present only in database

Hello all! I would like to know how the columns present only in the database, like parent, parenttype, modified, etc. can be given in the search fields. I have created a link field for a child table and I want the parent also in the search field. Please let me know if there is a solution.

I have done a workaround by copying the parent values to a hidden field in the form and it works. I’m just asking to know if there’s a better way. Thanks!