SEO, Meta Tags & Structured Data

Automatic meta tags, JSON-LD, and XML sitemap

SEO & Meta Tags

The module automatically injects rich meta tags and structured data on every page of your Drupal site. This helps the crawler extract the right data and also boosts your SEO.

Auto-generated sitemap

The module creates an XML sitemap at /opensolr-sitemap.xml listing all published nodes of your selected content types. The crawler uses this sitemap as its starting point to discover and index your pages.

Each entry in the sitemap includes:

  • URL β€” the canonical page URL
  • Last modified β€” when the content was last updated
  • Change frequency β€” set to "weekly" by default
  • Priority β€” set to 1.0
💡 Automatic updates

The sitemap updates automatically when you publish, update, or unpublish content. No manual regeneration needed.

Opensolr meta tags

Based on your field mappings, the module injects <meta property="opensolr:*"> tags on every page. The crawler reads these to populate facetable fields in your search index.

Example: if you map a "Category" taxonomy field as category_ss, each page gets:

<meta property="opensolr:category_ss" content="Tutorials">

Open Graph tags

The module ensures complete Open Graph tags on every node page:

  • og:title β€” the node title
  • og:description β€” the node's body summary or trimmed body
  • og:image β€” from the node's image field (with width, height, and alt)
  • og:type β€” "article" for nodes, "product" for Commerce products
  • og:url β€” canonical URL
  • og:site_name β€” your Drupal site name
  • og:locale β€” the content language

Twitter Card tags

Matching Twitter Card metadata is also injected:

  • twitter:card β€” "summary_large_image"
  • twitter:title, twitter:description, twitter:image

Article metadata

For article-type nodes, additional tags are added:

  • article:published_time β€” when the article was first published
  • article:modified_time β€” when it was last updated
  • article:section β€” the content type or category
  • article:tag β€” taxonomy terms
  • article:author β€” the author name

JSON-LD structured data

The module injects Schema.org structured data as JSON-LD on every page:

Articles & Pages

Article schema with headline, author, publisher, datePublished, dateModified, image, and description.

Commerce Products

Product schema with name, description, image, and Offer including price, currency, and availability.

This helps search engines (Google, Bing) understand your content and can lead to rich results in search engine results pages.

Canonical URLs and meta description

Every page gets a proper <link rel="canonical"> tag and a <meta name="description"> tag, preventing duplicate content issues and ensuring search engines show the right summary.

Content sync with Solr

The module keeps your search index in sync with your content:

  • When you update a published node β€” the old version is deleted from Solr and the crawler re-indexes the updated page
  • When you unpublish a node β€” it's removed from the Solr index
  • When you delete a node β€” it's removed from the Solr index
✅ All automatic

You never need to manually re-index individual pages. The module handles content sync automatically via Drupal's entity hooks.