Search.gov (machine name: USASearch)
Component type
Categories
Maintenance status
Development status
Downloads
Component created
Component changed
About Search.gov
For 15 years, GSA's Search.gov has transformed the public’s search experience on federal government websites. Agencies use our free, shared service to power over 1,900 search boxes. Learn more and set up your search today at https://search.gov.
Module Overview
The module:
- Connects to our search service to bypass the native Drupal search
- Sends content directly to our indexes via our i14y API (optional for Drupal 8)
Search
When a user enters a query in your Drupal site’s search box, the query will be sent to our search engine, and the user will be directed to our servers to view the search results. When they click on a result, they’ll be returned to your website to view the content.
Indexing
Required in Drupal 7, optional in Drupal 8
The module’s default indexing behavior is to monitor for CRUD events (node Creation, Updates, or Deletions), and to update the search index on save. Items are created in the index when a node is newly published, updated when edited, or removed from the index when unpublished or deleted. The module will also retrospectively index content that existed before the module was installed, via the Re-index site function.
Highly customized Drupal sites may be incompatible with our module’s default indexing settings. If you have custom workflows in Drupal 7, you may want to consider using the module’s Rules integration to determine when nodes are added or updated in the index. When Rules is working properly in Drupal 8, we will add a Rules integration to the 8.x module. If you find that you are unable to successfully implement the module, please review our troubleshooting tips.
We welcome your contributions to the module. It is an open source project, and we encourage you to submit code so that other agencies can leverage it as well - a rising tide lifts all boats!
