This Search.gov indexer allows WordPress administrators to index the posts and pages of their WordPress blog or website with the Search.gov hosted search service.
Configuring the plugin is straightforward:
- Install the plugin
- Set your credentials
- Manually run the indexer for the first time
Once the plugin has been properly configured, it will automatically update your search results as you create, update, or delete posts or pages.
You can install the code via either git or by downloading a .zip of the plugin.
First, cd into the plugins directory
$ cd wp-content/pluginsThen, install the plugin via git
$ git clone https://github.com/GSA/wp-digitalgov-i14y-indexer.git digitalgov_searchOr by pulling down the .zip with wget and using unzip to unpack it.
$ wget -O dgsearch.zip https://github.com/GSA/wp-digitalgov-i14y-indexer/archive/master.zip
$ unzip dgsearch.zip -d digitalgov_search
$ rm -f dgsearch.zip # cleanupTo find the credentials for your website, log in to the search Admin Center (https://search.usa.gov/sites) and navigate to Content -> i14y Drawers. Once you've created a new drawer, you will receive an API token which is used to authenticate your WordPress website with our service.
0.0.3
Want to contribute? Great! We're quite responsive to pull requests.