Opensearchkick
Adding opensearch fuinctionality to your Application. Right now untested opensearch-functionality. Soon with suggestion support.
Dependency
opensearchkick will use searchkick
for the suggestion functionality.
Installation
Add this line to your application's Gemfile:
gem 'opensearchkick'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install opensearchkick
Usage
You config everything with the initializer, create it by running the following command:
$ rails g opensearchkick:install
And you will have opensearchkick.rb in your initializer directory. After that you just need to add following line to your header:
<link rel="search" type="application/opensearchdescription+xml" href="opensearch.xml" title="Your Application name" />
Contributing
- Fork it ( https://github.com/dirble/opensearchkick/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request