Tips & Best Practices

Expert advice for optimal search performance

Tips & Best Practices

Practical advice for getting the most out of Opensolr Search on your Drupal site.

📌 Use Query Elevation for key pages

Search for your most important terms (your brand name, "pricing", "contact") and pin the right results to the top. This takes 10 seconds and guarantees visitors find what they need.

📈 Check No-Results Queries weekly

The Analytics dashboard shows what visitors searched for but couldn't find. These are content gaps — create pages for the top no-results queries to improve user experience.

🏷 Start with fewer facets

Don't enable every facet you can. Start with 2-3 that make sense (like Category and Content Type) and add more based on what visitors actually filter by. Too many facets overwhelm users.

📄 Map your most important fields

If you have taxonomy terms, categories, or product attributes, map them as facets. The more structured data the crawler has, the better your search filters work.

🤖 Enable AI Hints for content-heavy sites

AI Hints shine when you have lots of detailed content — documentation, knowledge bases, tutorials, product descriptions. They give visitors instant answers from your own content.

🔒 Keep HTTPS active

The crawler requires HTTPS. Make sure your SSL certificate is valid and auto-renewing. If it expires, the crawler can't access your pages and your index becomes stale.

✍ Use good page titles and descriptions

The crawler uses your page titles and meta descriptions for search results. Well-written titles and descriptions lead to better search results and higher click-through rates.

🚀 Force Re-crawl after big changes

Changed your field mappings? Restructured your content types? Switched themes? Hit "Force Re-crawl All" in the Go Live section to re-index everything with the latest changes.

📊 Don't over-tune search

The default search tuning settings work well for most sites. Only adjust field weights or minimum match if you're seeing specific problems. The "Balanced" minimum match preset is recommended for most use cases.

🎨 Override templates for custom design

Every Twig template can be overridden from your Drupal theme. Copy templates from the module's templates/ folder to your theme's templates/ folder. The main ones: opensolr-search-page.html.twig (search page), opensolr-autocomplete-item.html.twig (autocomplete), opensolr-analytics-dashboard.html.twig (analytics).

📦 Include documents for knowledge bases

If your site has downloadable PDFs, Word docs, or spreadsheets, enable "Include attached files". The crawler extracts text from these documents and makes them searchable alongside your web pages.

🚫 Use Persistent Filters wisely

Persistent filters are great for hiding content that shouldn't appear in search (admin pages, test content, internal URLs). But be careful with Include filters — they restrict ALL searches.

Getting help

Need help? Visit the issue queue on Drupal.org or contact Opensolr support. You can also check the Opensolr FAQ for answers to common questions.