Commit edfe444dafbd8a724278975386f524917097067d
1 parent
12078e08
Exists in
master
and in
18 other branches
Fixed images [skip ci]
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
README.md
... | ... | @@ -645,7 +645,7 @@ Product.search "milk", boost_where: {orderer_ids: current_user.id} |
645 | 645 | |
646 | 646 | Autocomplete predicts what a user will type, making the search experience faster and easier. |
647 | 647 | |
648 | - | |
648 | + | |
649 | 649 | |
650 | 650 | **Note:** To autocomplete on general categories (like `cereal` rather than product names), check out [Autosuggest](https://github.com/ankane/autosuggest). |
651 | 651 | |
... | ... | @@ -711,7 +711,7 @@ Then add the search box and JavaScript code to a view. |
711 | 711 | |
712 | 712 | ### Suggestions |
713 | 713 | |
714 | - | |
714 | + | |
715 | 715 | |
716 | 716 | ```ruby |
717 | 717 | class Product < ApplicationRecord |
... | ... | @@ -730,7 +730,7 @@ products.suggestions # ["peanut butter"] |
730 | 730 | |
731 | 731 | [Aggregations](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html) provide aggregated search data. |
732 | 732 | |
733 | - | |
733 | + | |
734 | 734 | |
735 | 735 | ```ruby |
736 | 736 | products = Product.search "chuck taylor", aggs: [:product_type, :gender, :brand] | ... | ... |