Admin
Content Model
Allow searching for ACFs
3min
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 use this catalog api query https //catalog staging purplemanager com/graphiql?variables=%7b%0a%20%20%22appinfo%22%3a%20%7b%0a%20%20%20%20%22appid%22%3a%20%22d9eb5f3e 5f25 48ea ae68 eb48c29d1b4a%22%2c%0a%20%20%20%20%22appversion%22%3a%20%221 0 snapshot%22%2c%0a%20%20%20%20%22preview%22%3a%20true%0a%20%20%7d%2c%0a%20%20%22authorization%22%3a%20%7b%0a%20%20%20%20%22accesstoken%22%3a%20null%2c%0a%20%20%20%20%22accountaccesstoken%22%3a%20null%2c%0a%20%20%20%20%22subscriptioncodes%22%3a%20%5b%5d%0a%20%20%7d%2c%0a%20%20%22deviceinfo%22%3a%20%7b%0a%20%20%20%20%22deviceid%22%3a%20%22web%22%2c%0a%20%20%20%20%22devicemodel%22%3a%20%22iphone13%2c1%22%2c%0a%20%20%20%20%22deviceos%22%3a%20%2215 0%22%2c%0a%20%20%20%20%22locale%22%3a%20%22en de%22%2c%0a%20%20%20%20%22platform%22%3a%20%22web%22%0a%20%20%7d%2c%0a%20%20%22searchphrase%22%3a%20%22test%22%0a%7d\&operationname=catalogsearch\&query=query%20catalogsearch(%24appinfo%3a%20appinfo!%2c%20%24deviceinfo%3a%20deviceinfo!%2c%20%24authorization%3a%20authorization%2c%20%24searchphrase%3a%20string!%2c%20%24contentfilter%3a%20contentfilter%2c%20%24fuzzymatching%3a%20boolean%2c%20%24findallwords%3a%20boolean%2c%20%24sort%3a%20%5bcontentsearchresultcomparator!%5d%2c%20%24first%3a%20int%2c%20%24after%3a%20string)%20%7b%0a%20%20catalog(appinfo%3a%20%24appinfo%2c%20deviceinfo%3a%20%24deviceinfo%2c%20authorization%3a%20%24authorization)%20%7b%0a%20%20%20%20contentsearchconnection(searchphrase%3a%20%24searchphrase%2c%20searchfields%3a%20%5bcustom terms%5d%2c%20contentfilter%3a%20%24contentfilter%2c%20fuzzymatching%3a%20%24fuzzymatching%2c%20findallwords%3a%20%24findallwords%2c%20sort%3a%20%24sort%2c%20first%3a%20%24first%2c%20after%3a%20%24after)%20%7b%0a%20%20%20%20%20%20totalcount%0a%20%20%20%20%20%20pageinfo%20%7b%0a%20%20%20%20%20%20%20%20haspreviouspage%0a%20%20%20%20%20%20%20%20hasnextpage%0a%20%20%20%20%20%20%20%20startcursor%0a%20%20%20%20%20%20%20%20endcursor%0a%20%20%20%20%20%20%7d%0a%20%20%20%20%20%20edges%20%7b%0a%20%20%20%20%20%20%20%20node%20%7b%0a%20%20%20%20%20%20%20%20%20%20 %20on%20postsearchresult%20%7b%0a%20%20%20%20%20%20%20%20%20%20%20%20excerpt%0a%20%20%20%20%20%20%20%20%20%20%20%20post%20%7b%0a%20%20%20%20%20%20%20%20%20%20%20%20%20%20name%0a%20%20%20%20%20%20%20%20%20%20%20%20%20%20posttype%0a%20%20%20%20%20%20%20%20%20%20%20%20%20%20properties%20%7b%0a%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20key%0a%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20value%0a%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7d%0a%20%20%20%20%20%20%20%20%20%20%20%20%7d%0a%20%20%20%20%20%20%20%20%20%20%7d%0a%20%20%20%20%20%20%20%20%7d%0a%20%20%20%20%20%20%7d%0a%20%20%20%20%7d%0a%20%20%7d%0a%7d%0a (adjust appid, preview and search term to match the acfs content) 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