Query Elevation
Decide by hand what comes first for a search: pin the page you want at the top, hide the one that should not show. Rules apply at once.
Where: Configuration › Search and metadata › Opensolr Search › Elevation tab (
/admin/config/search/opensolr/elevation)Turn it on
An index created by the module has elevation on already: the tab says Elevation is active. If it does not, click Enable Elevation; Opensolr configures your index and reloads it.
From the search page: the quick way
- Click Open Search Page to Manage Elevation, signed in as an administrator, and search for the words to curate.
- Under each result you see:
- PIN: puts this result at the top for this search. Pinned results can be dragged by their handle to set their order.
- EXCLUDE: hides it for this search.
- EXCLUDE ALL: hides it from every search.
- REMOVE: takes its rules away.
On the tab: Add Rule Manually
- Search Query: the search the rule is for. It must match the whole query, in any case.
- Document URL and Document Title: the page, and a title for your list.
- Action: Pin to top or Exclude from results.
- Position: for pins, the order from 0 to 50; 0 is first.
- Add Rule saves it. Existing Rules lists them all, each with Delete.
Rules are kept in your Drupal database. In Embeddable Search UI mode, elevation is managed in the Control Panel of your index instead.