From 722dca93f3a6c8bede175ce47ff36ef507836813 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 24 Jun 2020 17:56:32 -0700 Subject: [PATCH] Better stemming example [skip ci] --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 43c31b4..66b0fc3 100644 --- a/README.md +++ b/README.md @@ -301,7 +301,7 @@ User.search "fresh honey", match: :phrase ### Stemming and Language -Searchkick stems words by default for better matching. `tomatoes` and `tomato` both stem to `tomato`, so searches for either term will have the same matches. +Searchkick stems words by default for better matching. `apple` and `apples` both stem to `appl`, so searches for either term will have the same matches. Searchkick defaults to English for stemming. To change this, use: @@ -334,7 +334,7 @@ Specify certain words to be excluded from stemming: [unreleased] ```ruby class Image < ApplicationRecord - searchkick stem_exclusion: ["tomatoes"] + searchkick stem_exclusion: ["apples"] end ``` @@ -342,7 +342,7 @@ Or change how words are stemmed: [unreleased] ```ruby class Image < ApplicationRecord - searchkick stemmer_override: ["tomatoes => other"] + searchkick stemmer_override: ["apples => other"] end ``` -- libgit2 0.21.0