Skip to content

Releases: npezza93/redi_search

v7.0.0

23 Nov 01:38
be0e930
Compare
Choose a tag to compare
  • Drop support for ruby 2.7 and Rails 6.0
  • Add support for ruby 3.2 and Rails 7.1

v6.0.0

05 Feb 16:44
f0f847b
Compare
Choose a tag to compare

Breaking Changes:

  • Defining a schema no longer takes a hash but a block.
OLD: RediSearch::Index.new("user_idx", name: { text: { phonetic: "dm:en" } })
NEW: RediSearch::Index.new("user_idx") { text_field :name, phonetic: "dm:en" }

Same goes for defining an index inside a model:

OLD:
class User < ApplicationRecord
  redi_search schema: {
    first: { text: { phonetic: "dm:en" } },
    last: { text: { phonetic: "dm:en" } }
  }
end

NEW:
class User < ApplicationRecord
  redi_search do
    text_field :first, phonetic: "dm:en"
    text_field :last, phonetic: "dm:en"
  end
end
  • The serializer option in no more. This same functionality can be achieved by passing a block to a field definition inside a schema.
    EX:
class User < ApplicationRecord
  redi_search do
    text_field :name do
      "#{first_name} #{last_name}"
    end
  end
end
  • redi_search_document has been renamed to search_document
  • redi_search_delete_document has been renamed to remove_from_index
  • redi_search_add_document has been renamed to add_to_index
  • redi_search_index has been renamed to search_index

Rails 6.0+ is required

NEW:

  • Fixed querying in tag fields

v5.0.0

15 Sep 22:48
f6f6854
Compare
Choose a tag to compare
  • Add rails 7 support
  • Drop ruby 2.5 and 2.6 support

v3

17 Nov 01:14
4b2d8ed
Compare
Choose a tag to compare
v3

Support for RediSearch 2

2.0.2

26 Jun 22:11
c1375cd
Compare
Choose a tag to compare
Version bump to 2.0.2

2.0.1

03 Aug 21:17
30a1cf0
Compare
Choose a tag to compare
Version bump to 2.0.1

2.0.0

03 Aug 20:41
094e078
Compare
Choose a tag to compare
  • Renamed add_multiple! to add_multiple
  • Renamed alter to add_field

1.0.5

14 Jul 17:53
a4f654f
Compare
Choose a tag to compare
Version bump to 1.0.5

1.0.4

14 Jul 17:42
b884153
Compare
Choose a tag to compare
Version bump to 1.0.4

1.0.3

08 Jul 02:07
81f51a3
Compare
Choose a tag to compare
Version bump to 1.0.3