diff --git a/README.md b/README.md index 4ccf1562..c9df85d8 100644 --- a/README.md +++ b/README.md @@ -958,16 +958,17 @@ class Sentence < ActiveRecord::Base include PgSearch::Model pg_search_scope :similarity_like, + against: :name, + using: [:trigram] + + + pg_search_scope :word_similarity_like, against: :name, using: { trigram: { word_similarity: true } } - - pg_search_scope :word_similarity_like, - against: :name, - using: [:trigram] end sentence = Sentence.create! name: "Those are two words."