# Content Extraction

Content Extraction decides which title, images and text Site Search 360 takes from each page when it indexes your site. Without settings here, the crawler picks them automatically.

**Where to find it:** **Data Structuring** → [**Content Extraction**](https://app.sitesearch360.com/data-structuring/content-extraction)

**Before you start:** An XPath for the element you want; see [Working with XPaths](https://docs.sitesearch360.com/working-with-xpaths.md).

Each setting here applies to every page. To use different XPaths for one [result group](https://docs.sitesearch360.com/result-groups.md), override them in that group.

Changes take effect after you [re-index your site](https://docs.sitesearch360.com/your-search-index.md#re-indexing-your-site). The Control Panel doesn't prompt you for every setting here, so re-index after any change.

***

## Search result titles

Without a title XPath, the crawler picks the title automatically from the page.

To choose the title yourself:

1. Under **Title Extraction**, add a **Title XPath**, for example `//h1`.
2. Optional: in **Regular Expression**, keep only part of the title. The default `.*` keeps all of it.
3. Optional: tick **Add URL Path to Title** or **Add Meta Keywords to Title** to make pages findable by their URL path or meta keywords. These options appear once a Title XPath is set.
4. Enter one of your URLs under **Test extraction** and click **Test** to see the title.
5. Click **Save** and re-index.

***

## Search result images

By default, Site Search 360 detects one image per page: it uses the page's `og:image` and otherwise picks the most prominent image. Detection can pick the wrong one, such as an icon in the footer. If it does, set the image yourself.

### Set Open Graph images

If your CMS or SEO plugin sets an `og:image` meta tag on each page, that image is used. It's the same image shown when the page is shared on social media. Re-index after adding the tags.

### Choose the image with an XPath

1. Under **Image Extraction**, add an **Image XPath** that points at the image, for example `//div[@class='hero']//img/@src`.
2. Optional: tick **Fallback to Image Detection** to detect an image on pages where the XPath finds nothing.
3. Enter one of your URLs under **Test image extraction** and click **Test**.
4. Click **Save** and re-index.

The other image settings:

* **Extract Images:** turn it off to index no images at all.
* **Ignore OG Image:** detection skips the `og:image`.
* **Index Alt Texts:** makes the images' alt texts searchable (on by default).
* **Clear Image Cache:** after you change images on your site, removes the stored copies so the next index loads them again.

### Pages without an image

In **Design & Publish** → **Settings** → [**Layout**](https://app.sitesearch360.com/pluginConfiguration?tab=layout-configuration) → **Result Thumbnails**, choose what results without an image show under **Apply default image when missing**:

* **Show striped background**: the default.
* **Show placeholder image**: enter the **URL of the image**, such as your logo.
* **Collapse missing images**: the result shows no image area.

In code, set `results.placeholderImage` in your `ss360Config` to an image URL, or to `null` to collapse missing images.

***

## Multiple images per search result

Alternative images let visitors flip through several images on one result card, for example a product's colours.

![A search result card showing the second of eleven book covers, with the arrows and dots that switch between them outlined](/assets/images/alternative-images.2026-11-944a8463ee73bfd056c7f5bddccd9575.webp)

1. Under **Alternative Images Extraction**, add an **Alternative images XPath** that points at the image URLs, for example `//div[@class='gallery']//img/@src`. Every image it matches becomes an alternative image.
2. Enter one of your URLs under **Test alternatives image extraction** and click **Test**. You should see a list of image URLs.
3. Click **Save** and re-index.

The section appears only while **Extract Images** is on. Alternative images show only on results that also have a main image, with search script v14 or later, while **Display alternative images** is on in **Design & Publish** → **Settings** → [**Layout**](https://app.sitesearch360.com/pluginConfiguration?tab=layout-configuration) → **Result Thumbnails**.

***

## Search result content

By default, the crawler indexes the text of the whole page. To leave out parts that aren't useful in search, such as headers, footers and navigation, or to index only the main content:

1. Under **Content Extraction**, add an **Exclude Content XPath** for each part to leave out, for example `//footer`. To index only certain parts, add an **Include Content XPath** instead.
2. Click **Save** and re-index.

Both settings also limit where images are detected.
