Commit 515938a65c699e0f4bc10b0d54db86ae8933bbc7
Exists in
master
and in
21 other branches
Merge pull request #580 from ReadmeCritic/master
Update README URLs based on HTTP redirects
Showing
1 changed file
with
11 additions
and
11 deletions
Show diff stats
README.md
@@ -31,7 +31,7 @@ Plus: | @@ -31,7 +31,7 @@ Plus: | ||
31 | 31 | ||
32 | ## Get Started | 32 | ## Get Started |
33 | 33 | ||
34 | -[Install Elasticsearch](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html). For Homebrew, use: | 34 | +[Install Elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html). For Homebrew, use: |
35 | 35 | ||
36 | ```sh | 36 | ```sh |
37 | brew install elasticsearch | 37 | brew install elasticsearch |
@@ -68,7 +68,7 @@ products.each do |product| | @@ -68,7 +68,7 @@ products.each do |product| | ||
68 | end | 68 | end |
69 | ``` | 69 | ``` |
70 | 70 | ||
71 | -Searchkick supports the complete [Elasticsearch Search API](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-search.html). As your search becomes more advanced, we recommend you use the [Elasticsearch DSL](#advanced) for maximum flexibility. | 71 | +Searchkick supports the complete [Elasticsearch Search API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html). As your search becomes more advanced, we recommend you use the [Elasticsearch DSL](#advanced) for maximum flexibility. |
72 | 72 | ||
73 | ### Queries | 73 | ### Queries |
74 | 74 | ||
@@ -107,7 +107,7 @@ Order | @@ -107,7 +107,7 @@ Order | ||
107 | order: {_score: :desc} # most relevant first - default | 107 | order: {_score: :desc} # most relevant first - default |
108 | ``` | 108 | ``` |
109 | 109 | ||
110 | -[All of these sort options are supported](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html) | 110 | +[All of these sort options are supported](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html) |
111 | 111 | ||
112 | Limit / offset | 112 | Limit / offset |
113 | 113 | ||
@@ -563,7 +563,7 @@ products.suggestions # ["peanut butter"] | @@ -563,7 +563,7 @@ products.suggestions # ["peanut butter"] | ||
563 | 563 | ||
564 | ### Aggregations | 564 | ### Aggregations |
565 | 565 | ||
566 | -[Aggregations](http://www.elasticsearch.org/guide/reference/api/search/facets/) provide aggregated search data. | 566 | +[Aggregations](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-facets.html) provide aggregated search data. |
567 | 567 | ||
568 |  | 568 |  |
569 | 569 | ||
@@ -761,7 +761,7 @@ Additional options, including fragment size, can be specified for each field: | @@ -761,7 +761,7 @@ Additional options, including fragment size, can be specified for each field: | ||
761 | Band.search "cinema", fields: [:name], highlight: {fields: {name: {fragment_size: 200}}} | 761 | Band.search "cinema", fields: [:name], highlight: {fields: {name: {fragment_size: 200}}} |
762 | ``` | 762 | ``` |
763 | 763 | ||
764 | -You can find available highlight options in the [Elasticsearch reference](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-highlighting.html#_highlighted_fragments). | 764 | +You can find available highlight options in the [Elasticsearch reference](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html#_highlighted_fragments). |
765 | 765 | ||
766 | ### Similar Items | 766 | ### Similar Items |
767 | 767 | ||
@@ -804,7 +804,7 @@ Boost results by distance - closer results are boosted more | @@ -804,7 +804,7 @@ Boost results by distance - closer results are boosted more | ||
804 | City.search "san", boost_by_distance: {field: :location, origin: [37, -122]} | 804 | City.search "san", boost_by_distance: {field: :location, origin: [37, -122]} |
805 | ``` | 805 | ``` |
806 | 806 | ||
807 | -Also supports [additional options](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#_decay_functions) | 807 | +Also supports [additional options](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#_decay_functions) |
808 | 808 | ||
809 | ```ruby | 809 | ```ruby |
810 | City.search "san", boost_by_distance: {field: :location, origin: [37, -122], function: :linear, scale: "30mi", decay: 0.5} | 810 | City.search "san", boost_by_distance: {field: :location, origin: [37, -122], function: :linear, scale: "30mi", decay: 0.5} |
@@ -897,7 +897,7 @@ Searchkick uses `ENV["ELASTICSEARCH_URL"]` for the Elasticsearch server. This d | @@ -897,7 +897,7 @@ Searchkick uses `ENV["ELASTICSEARCH_URL"]` for the Elasticsearch server. This d | ||
897 | 897 | ||
898 | ### Heroku | 898 | ### Heroku |
899 | 899 | ||
900 | -Choose an add-on: [SearchBox](https://elements.heroku.com/addons/searchbox), [Bonsai](https://elements.heroku.com/addons/bonsai), or [Found](https://addons.heroku.com/foundelasticsearch). | 900 | +Choose an add-on: [SearchBox](https://elements.heroku.com/addons/searchbox), [Bonsai](https://elements.heroku.com/addons/bonsai), or [Found](https://elements.heroku.com/addons/foundelasticsearch). |
901 | 901 | ||
902 | ```sh | 902 | ```sh |
903 | # SearchBox | 903 | # SearchBox |
@@ -1000,7 +1000,7 @@ Create an initializer `config/initializers/elasticsearch.rb` with multiple hosts | @@ -1000,7 +1000,7 @@ Create an initializer `config/initializers/elasticsearch.rb` with multiple hosts | ||
1000 | Searchkick.client = Elasticsearch::Client.new(hosts: ["localhost:9200", "localhost:9201"], retry_on_failure: true) | 1000 | Searchkick.client = Elasticsearch::Client.new(hosts: ["localhost:9200", "localhost:9201"], retry_on_failure: true) |
1001 | ``` | 1001 | ``` |
1002 | 1002 | ||
1003 | -See [elasticsearch-transport](https://github.com/elasticsearch/elasticsearch-ruby/blob/master/elasticsearch-transport) for a complete list of options. | 1003 | +See [elasticsearch-transport](https://github.com/elastic/elasticsearch-ruby/blob/master/elasticsearch-transport) for a complete list of options. |
1004 | 1004 | ||
1005 | ### Lograge | 1005 | ### Lograge |
1006 | 1006 | ||
@@ -1018,7 +1018,7 @@ See [Production Rails](https://github.com/ankane/production_rails) for other goo | @@ -1018,7 +1018,7 @@ See [Production Rails](https://github.com/ankane/production_rails) for other goo | ||
1018 | 1018 | ||
1019 | ## Advanced | 1019 | ## Advanced |
1020 | 1020 | ||
1021 | -Prefer to use the [Elasticsearch DSL](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-queries.html) but still want awesome features like zero-downtime reindexing? | 1021 | +Prefer to use the [Elasticsearch DSL](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-queries.html) but still want awesome features like zero-downtime reindexing? |
1022 | 1022 | ||
1023 | ### Advanced Mapping | 1023 | ### Advanced Mapping |
1024 | 1024 | ||
@@ -1242,7 +1242,7 @@ Product.search "ah", misspellings: {prefix_length: 2} # ah, no aha | @@ -1242,7 +1242,7 @@ Product.search "ah", misspellings: {prefix_length: 2} # ah, no aha | ||
1242 | 1242 | ||
1243 | ## Large Data Sets | 1243 | ## Large Data Sets |
1244 | 1244 | ||
1245 | -For large data sets, check out [Keeping Elasticsearch in Sync](https://www.found.no/foundation/keeping-elasticsearch-in-sync/). Searchkick will make this easy in the future. | 1245 | +For large data sets, check out [Keeping Elasticsearch in Sync](https://www.elastic.co/blog/found-keeping-elasticsearch-in-sync). Searchkick will make this easy in the future. |
1246 | 1246 | ||
1247 | ## Testing | 1247 | ## Testing |
1248 | 1248 | ||
@@ -1338,7 +1338,7 @@ Before `0.3.0`, locations were indexed incorrectly. When upgrading, be sure to r | @@ -1338,7 +1338,7 @@ Before `0.3.0`, locations were indexed incorrectly. When upgrading, be sure to r | ||
1338 | 1338 | ||
1339 | ### Inconsistent Scores | 1339 | ### Inconsistent Scores |
1340 | 1340 | ||
1341 | -Due to the distributed nature of Elasticsearch, you can get incorrect results when the number of documents in the index is low. You can [read more about it here](http://www.elasticsearch.org/blog/understanding-query-then-fetch-vs-dfs-query-then-fetch/). To fix this, do: | 1341 | +Due to the distributed nature of Elasticsearch, you can get incorrect results when the number of documents in the index is low. You can [read more about it here](https://www.elastic.co/blog/understanding-query-then-fetch-vs-dfs-query-then-fetch). To fix this, do: |
1342 | 1342 | ||
1343 | ```ruby | 1343 | ```ruby |
1344 | class Product < ActiveRecord::Base | 1344 | class Product < ActiveRecord::Base |