From ac552c85e55246c2c4618e3b042b602f6078c422 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 22 Mar 2014 14:30:37 -0700 Subject: [PATCH] Version bump to 0.6.0 --- CHANGELOG.md | 6 ++++++ README.md | 14 +++----------- lib/searchkick/version.rb | 2 +- searchkick.gemspec | 4 ++-- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56c551d..4e45695 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.6.0 + +- Moved to elasticsearch-ruby +- Added support for modifying the query and viewing the response +- Added support for page_entries_info method + ## 0.5.3 - Fixed bug w/ word_* queries diff --git a/README.md b/README.md index 77715b2..dbbc987 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ Product.search "fresh honey" # fresh AND honey To change this, use: ```ruby -Product.search "fresh honey", partial: true # fresh OR honey +Product.search "fresh honey", operator: "or" # fresh OR honey ``` By default, results must match the entire word - `back` will not match `backpack`. You can change this behavior with: @@ -496,7 +496,7 @@ And to search, use: ```ruby Animal.search "*" # all animals Dog.search "*" # just dogs -Animal.search "*", type: [Dog, Cat] # just cats and dogs [master] +Animal.search "*", type: [Dog, Cat] # just cats and dogs ``` **Note:** The `suggest` option retrieves suggestions from the parent at the moment. @@ -585,9 +585,7 @@ class Product < ActiveRecord::Base end ``` -## Experimental - -Modify the query generated by Searchkick. +To modify the query generated by Searchkick, use: ```ruby query = Product.search "2% Milk", execute: false @@ -595,12 +593,6 @@ query.body[:query] = {match_all: {}} products = query.execute ``` -View the response with: - -```ruby -products.response -``` - ## Reference Searchkick requires Elasticsearch `0.90.0` or higher. diff --git a/lib/searchkick/version.rb b/lib/searchkick/version.rb index 042679c..61897e9 100644 --- a/lib/searchkick/version.rb +++ b/lib/searchkick/version.rb @@ -1,3 +1,3 @@ module Searchkick - VERSION = "0.5.3" + VERSION = "0.6.0" end diff --git a/searchkick.gemspec b/searchkick.gemspec index 25ce0d9..4ec2bba 100644 --- a/searchkick.gemspec +++ b/searchkick.gemspec @@ -8,8 +8,8 @@ Gem::Specification.new do |spec| spec.version = Searchkick::VERSION spec.authors = ["Andrew Kane"] spec.email = ["andrew@chartkick.com"] - spec.description = %q{Search made easy} - spec.summary = %q{Search made easy} + spec.description = %q{Intelligent search made easy} + spec.summary = %q{Searchkick learns what your users are looking for. As more people search, it gets smarter and the results get better. It’s friendly for developers - and magical for your users.} spec.homepage = "https://github.com/ankane/searchkick" spec.license = "MIT" -- libgit2 0.21.0