Commit ec12d95b0798025ff262b69e4205924c197c5960
1 parent
8236f2ac
Exists in
master
and in
5 other branches
Cleaned up upgrading section [skip ci]
Showing
1 changed file
with
0 additions
and
26 deletions
Show diff stats
README.md
... | ... | @@ -1962,37 +1962,11 @@ Product.search "api", misspellings: {prefix_length: 2} # api, apt, no ahi |
1962 | 1962 | Product.search "ah", misspellings: {prefix_length: 2} # ah, no aha |
1963 | 1963 | ``` |
1964 | 1964 | |
1965 | -## Upgrading | |
1966 | - | |
1967 | -See [how to upgrade to Searchkick 3](docs/Searchkick-3-Upgrade.md) | |
1968 | - | |
1969 | 1965 | ## Elasticsearch 6 to 7 Upgrade |
1970 | 1966 | |
1971 | 1967 | 1. Install Searchkick 4 |
1972 | 1968 | 2. Upgrade your Elasticsearch cluster |
1973 | 1969 | |
1974 | -## Elasticsearch 5 to 6 Upgrade | |
1975 | - | |
1976 | -Elasticsearch 6 removes the ability to reindex with the `_all` field. Before you upgrade, we recommend disabling this field manually and specifying default fields on your models. | |
1977 | - | |
1978 | -```ruby | |
1979 | -class Product < ApplicationRecord | |
1980 | - searchkick _all: false, default_fields: [:name] | |
1981 | -end | |
1982 | -``` | |
1983 | - | |
1984 | -If you need search across multiple fields, we recommend creating a similar field in your search data. | |
1985 | - | |
1986 | -```ruby | |
1987 | -class Product < ApplicationRecord | |
1988 | - def search_data | |
1989 | - { | |
1990 | - all: [name, size, quantity].join(" ") | |
1991 | - } | |
1992 | - end | |
1993 | -end | |
1994 | -``` | |
1995 | - | |
1996 | 1970 | ## Elasticsearch Gotchas |
1997 | 1971 | |
1998 | 1972 | ### Consistency | ... | ... |