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
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 titleog:descriptionβ the node's body summary or trimmed bodyog:imageβ from the node's image field (with width, height, and alt)og:typeβ "article" for nodes, "product" for Commerce productsog:urlβ canonical URLog:site_nameβ your Drupal site nameog: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 publishedarticle:modified_timeβ when it was last updatedarticle:sectionβ the content type or categoryarticle:tagβ taxonomy termsarticle: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
You never need to manually re-index individual pages. The module handles content sync automatically via Drupal's entity hooks.