Your Search Page
The module gives your site a search page at /opensolr-search. Visitors get the words they type and what they mean in one ranking, filters, documents, and answers written from your own pages.
Where: Configuration › Search and metadata › Opensolr Search › Search Page tab (
/admin/config/search/opensolr/display)Two ways to show it
- Drupal Native: the module draws the page inside your Drupal theme. You choose its features on the Search Page tab, and you can restyle it from your theme.
- Opensolr Embeddable Search UI: the Opensolr search widget, the same one as your hosted Opensolr search page, shown at the same address.
On the native page
- Suggestions as visitors type: earlier searches and live results.
- Sorting: relevance, or any of your facet fields, either way.
- Fresh: a visitor switch that ranks newer content higher.
- AI on the search page: AI Hints, AI Reader and the AI switch.
- Web and Documents tabs: a search of your attached files, one result per document.
- Search by image: a camera button in the search box.
- Facets in a sidebar, with every active filter shown as a pill you can remove.
- Search operators:
"exact phrase",+mustand-without. See Search operators.
Good to know
- Once an index is connected, Drupal's own search forms (the core Search block and the
/searchpage) send visitors to/opensolr-searchwith their words. - The Opensolr Search Box block puts a search box anywhere in your theme.
- Every search has its own address, so results can be bookmarked and shared, filters and sorting included.
- Signed in as an administrator, you see PIN, EXCLUDE and EXCLUDE ALL under each result: see Query Elevation.
- The native page is drawn by the template
opensolr-search-page.html.twig; copy it into your theme to change the markup. - Prefer to search with Drupal AI Search only? Turn the search page off.