The “Get image from search index” feature might not be working on your Webflow search results page due to missing or improperly configured image fields in your search index or CMS collections.
1. Ensure CMS Items Have Image Fields
- Webflow pulls images for search results from the "Image" field defined in your CMS items.
- Each CMS item must have a populated image field (e.g., an Image or Multi-image field) that is included in the search index.
2. Confirm Image Field is Enabled in Search Index
- Go to the CMS collection in question.
- Click Settings on the collection.
- Scroll to the Search Indexing section.
- Make sure the appropriate Image field is selected under “Media to include in search results.”
- If no field is selected, Webflow has no way to assign an image to the search result.
3. Reindex Site After Changes
- After adjusting search index settings, you must trigger a reindex.
- Webflow automatically reindexes every 12 hours, but you can manually do this by:
- Making a small CMS update and republishing the site.
- Or, going to Project Settings > Publishing and clicking Reindex Site Content.
4. Use the Search Result Bindings Correctly
- On the Search Results Page, add an Image element inside the search result wrapper.
- In the Image element's settings (gear icon in the upper-left corner of the element), make sure it's set to “Get image from search index.”
- If nothing is showing, Webflow couldn’t find an image in your index for that search item.
5. Check CMS Collection Permissions
- If you're using a Reference or Multi-reference field, Webflow does not automatically pull media from referenced items.
- The image must be part of the direct collection associated with the indexed item.
6. Test With Known Entries
- Try searching for a term linked to a CMS item you know has a valid image and is included in the index.
- If images still don’t appear, verify that the data is correctly associated and published.
Summary
To fix the “get image from search index” issue, ensure the image field is set in your CMS collection’s search settings, all entries have images, and your site is reindexed. Also, confirm you’re using the proper image binding inside the search results template.