Skip to content

NCSU-Libraries/quick_search-summon_searcher

Repository files navigation

QuickSearch Summon Searcher

Description

This is a gem engine implementing a Summon searcher for QuickSearch.

In addition to providing Summon results, the searcher can provide:

  • Spelling Suggestions
  • Related Topics
  • Topic Snippets

These services can be enabled / disabled by adding / removing them from the "services" configuration option in summon_config.yml.

Note: This gem was extracted from NCSU Libraries' implementation of QuickSearch, and although some aspects have been made configurable, there may be still be some assumptions baked into the searcher. Issues or pull requests are welcome if you run into this situation.

Installation

Include the searcher gem in your Gemfile:

gem 'quick_search-summon_searcher'

Include as a searcher in your config/quick_search_config.yml:

searchers = [summon, ..., some_searcher]

Run bundle install:

bundle install

Include in your Search Results page

 <%= render_module @summon, 'summon' %>

For more general information about setting up searcher plugins in QuickSearch, see https://github.com/NCSU-Libraries/quick_search

Configuration

Configuration for the searcher is found in config/summon_config.yml. To override the default configuration, copy summon_config.yml to your QuickSearch application's config directory: <my_app>/config/searchers/summon_searcher.yml, then modify that version.

You need to supply your API keys to summon_config.yml in order to allow the searcher to make requests to the Summon API. Additionally, you'll want to configure the commands and filters that are applied to the API response and link into the Summon search results page respectively. These are also set in summon_config.yml, and map to values for filters in the Summon API URL or search results page URL. You can see examples in the default summon_config.yml: https://www.github.com/ncsu-libraries/quick_search-summon_searcher/blob/master/config/summon_config.yml

For more information about commands and filters, look at the Summon API documentation: https://api.summon.serialssolutions.com/help/api/search/commands

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published