When a visitor on your site's search results page clicks the external search scope tab, a new browser tab is opened and a search is performed on the search service you've specified for the scope using the terms the visitors used on your site's search — see the example user journey for using external search below.
- The website visitor searches for a term on the Mosaic site
- The visitor chooses the external search from the scope tabs on the search results page
- A new browser tab is opened and a search is run on the specified external search service using the term the visitor entered on the Mosaic site
To create an external search scope:
- Go to Site Settings > Search tab > Search scopes section > click the link to 'manage your Search scopes'
- Select the search scope type: 'External search'
- Provide a label for the external search scope (maximum of 20 characters) [see 1 in the example above]. This will be displayed in a tab on the search results page. An 'external-link' icon will be displayed next to the label text
- Provide search URL for the external service [see 2 in the example above]. You will need to provide a URL which includes the appropriate search query parameter for the service you want to use, and a placeholder for the search terms:
- Search query URL. To get a URL which includes a search query parameter, go to the search service you want to use and run a search. Note the URL structure for the search results page and copy the URL from its beginning up to and including the first instance of the '=' character, for example:
- DuckDuckGo query URL: 'https://duckduckgo.com/?q='
- Bing query URL: 'https://www.bing.com/search?q='
- Google query URL: 'https://www.google.com/search?q='
- www.ox.ac.uk (main Oxford website) query URL: 'https://www.ox.ac.uk/search?query='
- Placeholder for search terms. This is the character set '$1'. '$1' will be subtituted for the visitor's search term when the external search page is loaded
- Click 'Save'
- An entry for the external search scope will be displayed in the Search scopes summary table. The collection can be edited or deleted from the summary table