Commit 7cf0fbfcd9d4ff0170964834b76d707a4442653c

Authored by Andrew Kane
1 parent b0e1d1f5

Updated links [skip ci]

Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
@@ -131,7 +131,7 @@ Order @@ -131,7 +131,7 @@ Order
131 order: {_score: :desc} # most relevant first - default 131 order: {_score: :desc} # most relevant first - default
132 ``` 132 ```
133 133
134 -[All of these sort options are supported](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html) 134 +[All of these sort options are supported](https://www.elastic.co/guide/en/elasticsearch/reference/current/sort-search-results.html)
135 135
136 Limit / offset 136 Limit / offset
137 137
@@ -145,7 +145,7 @@ Select @@ -145,7 +145,7 @@ Select
145 select: [:name] 145 select: [:name]
146 ``` 146 ```
147 147
148 -[These source filtering options are supported](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-source-filtering) 148 +[These source filtering options are supported](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html#source-filtering)
149 149
150 ### Results 150 ### Results
151 151
@@ -905,7 +905,7 @@ Additional options can be specified for each field: @@ -905,7 +905,7 @@ Additional options can be specified for each field:
905 Band.search "cinema", fields: [:name], highlight: {fields: {name: {fragment_size: 200}}} 905 Band.search "cinema", fields: [:name], highlight: {fields: {name: {fragment_size: 200}}}
906 ``` 906 ```
907 907
908 -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). 908 +You can find available highlight options in the [Elasticsearch reference](https://www.elastic.co/guide/en/elasticsearch/reference/current/highlighting.html).
909 909
910 ## Similar Items 910 ## Similar Items
911 911
@@ -956,7 +956,7 @@ Boost results by distance - closer results are boosted more @@ -956,7 +956,7 @@ Boost results by distance - closer results are boosted more
956 Restaurant.search "noodles", boost_by_distance: {location: {origin: {lat: 37, lon: -122}}} 956 Restaurant.search "noodles", boost_by_distance: {location: {origin: {lat: 37, lon: -122}}}
957 ``` 957 ```
958 958
959 -Also supports [additional options](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#_decay_functions) 959 +Also supports [additional options](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-decay)
960 960
961 ```ruby 961 ```ruby
962 Restaurant.search "wings", boost_by_distance: {location: {origin: {lat: 37, lon: -122}, function: "linear", scale: "30mi", decay: 0.5}} 962 Restaurant.search "wings", boost_by_distance: {location: {origin: {lat: 37, lon: -122}, function: "linear", scale: "30mi", decay: 0.5}}
@@ -1723,7 +1723,7 @@ Check out [this great post](https://www.tiagoamaro.com.br/2014/12/11/multi-tenan @@ -1723,7 +1723,7 @@ Check out [this great post](https://www.tiagoamaro.com.br/2014/12/11/multi-tenan
1723 1723
1724 ## Scroll API 1724 ## Scroll API
1725 1725
1726 -Searchkick also supports the [scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html). Scrolling is not intended for real time user requests, but rather for processing large amounts of data. 1726 +Searchkick also supports the [scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#scroll-search-results). Scrolling is not intended for real time user requests, but rather for processing large amounts of data.
1727 1727
1728 ```ruby 1728 ```ruby
1729 Product.search("*", scroll: "1m").scroll do |batch| 1729 Product.search("*", scroll: "1m").scroll do |batch|
@@ -1976,7 +1976,7 @@ products = Product.search("carrots", execute: false) @@ -1976,7 +1976,7 @@ products = Product.search("carrots", execute: false)
1976 products.each { ... } # search not executed until here 1976 products.each { ... } # search not executed until here
1977 ``` 1977 ```
1978 1978
1979 -Add [request parameters](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-uri-request.html), like `search_type` and `query_cache` 1979 +Add [request parameters](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html#search-search-api-query-params) like `search_type`
1980 1980
1981 ```ruby 1981 ```ruby
1982 Product.search("carrots", request_params: {search_type: "dfs_query_then_fetch"}) 1982 Product.search("carrots", request_params: {search_type: "dfs_query_then_fetch"})