Commit ac552c85e55246c2c4618e3b042b602f6078c422
1 parent
c72ef2c1
Exists in
master
and in
21 other branches
Version bump to 0.6.0
Showing
4 changed files
with
12 additions
and
14 deletions
Show diff stats
CHANGELOG.md
README.md
... | ... | @@ -147,7 +147,7 @@ Product.search "fresh honey" # fresh AND honey |
147 | 147 | To change this, use: |
148 | 148 | |
149 | 149 | ```ruby |
150 | -Product.search "fresh honey", partial: true # fresh OR honey | |
150 | +Product.search "fresh honey", operator: "or" # fresh OR honey | |
151 | 151 | ``` |
152 | 152 | |
153 | 153 | 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: |
496 | 496 | ```ruby |
497 | 497 | Animal.search "*" # all animals |
498 | 498 | Dog.search "*" # just dogs |
499 | -Animal.search "*", type: [Dog, Cat] # just cats and dogs [master] | |
499 | +Animal.search "*", type: [Dog, Cat] # just cats and dogs | |
500 | 500 | ``` |
501 | 501 | |
502 | 502 | **Note:** The `suggest` option retrieves suggestions from the parent at the moment. |
... | ... | @@ -585,9 +585,7 @@ class Product < ActiveRecord::Base |
585 | 585 | end |
586 | 586 | ``` |
587 | 587 | |
588 | -## Experimental | |
589 | - | |
590 | -Modify the query generated by Searchkick. | |
588 | +To modify the query generated by Searchkick, use: | |
591 | 589 | |
592 | 590 | ```ruby |
593 | 591 | query = Product.search "2% Milk", execute: false |
... | ... | @@ -595,12 +593,6 @@ query.body[:query] = {match_all: {}} |
595 | 593 | products = query.execute |
596 | 594 | ``` |
597 | 595 | |
598 | -View the response with: | |
599 | - | |
600 | -```ruby | |
601 | -products.response | |
602 | -``` | |
603 | - | |
604 | 596 | ## Reference |
605 | 597 | |
606 | 598 | Searchkick requires Elasticsearch `0.90.0` or higher. | ... | ... |
lib/searchkick/version.rb
searchkick.gemspec
... | ... | @@ -8,8 +8,8 @@ Gem::Specification.new do |spec| |
8 | 8 | spec.version = Searchkick::VERSION |
9 | 9 | spec.authors = ["Andrew Kane"] |
10 | 10 | spec.email = ["andrew@chartkick.com"] |
11 | - spec.description = %q{Search made easy} | |
12 | - spec.summary = %q{Search made easy} | |
11 | + spec.description = %q{Intelligent search made easy} | |
12 | + 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.} | |
13 | 13 | spec.homepage = "https://github.com/ankane/searchkick" |
14 | 14 | spec.license = "MIT" |
15 | 15 | ... | ... |