Admin
Content Model
Allow searching for ACFs
3 min
summary acfs can be configured in the hub to be indexed for search description acfs can be configured in the hub to be indexed for search when publishing a content, all values of the selected acfs are concatenated and published into a new field "customsearchterms" and then indexed by the indexing service this new field can then be included for full text searches in the catalog api using a new enum value "custom terms" for searchfields how to configure please see this video for a walkthrough of the setup https //www loom com/share/51669e9cea324405885bc3c8ca07d65c?sid=0de42c40 e066 4d40 8cc7 94b541a30c84 https //www loom com/share/51669e9cea324405885bc3c8ca07d65c?sid=0de42c40 e066 4d40 8cc7 94b541a30c84 example setup (making image titles searchable) login to the hub as admin navigate to acf > field groups > create a new field group or edit an existing field group create the following items a) an acf field with type "image" and type in " title " in field "index fields" b) an acf field with type checkbox (fill out available checkboxes in "choices" field, e g 'checkbox 1 value 1') then type in " checkbox feld " in field "index fields" save your changes create an article, scroll down and find the image acf field a) upload an image and check the title of the image in the media library (e g apple) b) search for the created checkbox field and hit the checkbox publish the article a) hit the query with search term "apple" b) hit the query with search term "checkbox 1" > query shows exactly 1 post as result this only affects posts that are published after the configuration has been setup if you want this to work for all already existing articles in a hub, it is necessary to republish all of them via bulk publish