Skip to content

Commit

Permalink
fix: README.md images (#1673)
Browse files Browse the repository at this point in the history
On GitHub, Markdown does not show images if urls are redirected.
  • Loading branch information
JohnnyKei authored Apr 11, 2024
1 parent 239c178 commit f648810
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ Product.search("milk", boost_where: {orderer_ids: current_user.id})

Autocomplete predicts what a user will type, making the search experience faster and easier.

![Autocomplete](https://gist.github.com/ankane/b6988db2802aca68a589b31e41b44195/raw/40febe948427e5bc53ec4e5dc248822855fef76f/autocomplete.png)
![Autocomplete](https://gist.githubusercontent.com/ankane/b6988db2802aca68a589b31e41b44195/raw/40febe948427e5bc53ec4e5dc248822855fef76f/autocomplete.png)

**Note:** To autocomplete on search terms rather than results, check out [Autosuggest](https://github.com/ankane/autosuggest).

Expand Down Expand Up @@ -881,7 +881,7 @@ Then add the search box and JavaScript code to a view.

## Suggestions

![Suggest](https://gist.github.com/ankane/b6988db2802aca68a589b31e41b44195/raw/40febe948427e5bc53ec4e5dc248822855fef76f/recursion.png)
![Suggest](https://gist.githubusercontent.com/ankane/b6988db2802aca68a589b31e41b44195/raw/40febe948427e5bc53ec4e5dc248822855fef76f/recursion.png)

```ruby
class Product < ApplicationRecord
Expand All @@ -900,7 +900,7 @@ products.suggestions # ["peanut butter"]

[Aggregations](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html) provide aggregated search data.

![Aggregations](https://gist.github.com/ankane/b6988db2802aca68a589b31e41b44195/raw/40febe948427e5bc53ec4e5dc248822855fef76f/facets.png)
![Aggregations](https://gist.githubusercontent.com/ankane/b6988db2802aca68a589b31e41b44195/raw/40febe948427e5bc53ec4e5dc248822855fef76f/facets.png)

```ruby
products = Product.search("chuck taylor", aggs: [:product_type, :gender, :brand])
Expand Down

0 comments on commit f648810

Please sign in to comment.