Search through database list in user dictionary

Dear community,

I created user profiles containing many different database lists, e.g. the hobbies property:
see https://imgur.com/bqAk6SW

Now I am trying to customize the user dictionary so users can be searched and found by their hobbies, however the dropdown menu does not list the values entered as hobbies by the user:
see https://imgur.com/gjI6mQx

How do I need to configure the database list that I can filter for the entries?

Is there a way to replace the dropdown menu with an input field, where users can simply enter strings - like for the string properties like first_name and nickname?

Thank you for your time and assistance.

How exactly did you do this? By adding new properties to the XWiki.XWikiUsers class? Or by creating a new class?

With this http://extensions.xwiki.org/xwiki/bin/view/Extension/User+Directory+Application#HCustomization ? You could try to comment out this line xwiki-platform/xwiki-platform-core/xwiki-platform-user/xwiki-platform-user-directory/xwiki-platform-user-directory-ui/src/main/resources/XWiki/UserDirectoryMacros.xml at master · xwiki/xwiki-platform · GitHub (by editing the XWiki.UserDirectoryMacros page).

Hope this helps,
Marius