Skip to content

Releases: meilisearch/meilisearch-rails

v0.16.0 🚂

21 May 12:40
1c3652a
Compare
Choose a tag to compare

⚠️ Breaking changes

  • Bump meilisearch ruby to v0.32 to add support for auto-retries (#419) @brunoocasali

⚙️ Maintenance/misc

Thanks again to @brunoocasali, @ellnix, @meili-bors[bot] ! 🎉

v0.15.0 🚂

25 Mar 20:23
a35652c
Compare
Choose a tag to compare

⚠️ Breaking changes

  • Rename top-level module MeiliSearch to Meilisearch (#384) @ellnix
    We are now consistent with other usage of Meilisearch. Here is a convenient one-liner to move to the new spelling:
    find . -type f -exec sed -i 's/MeiliSearch/Meilisearch/g' {} \; 
    Using the old spelling is still functional, but will throw a warning for the time being.

🚀 Enhancements

  • Support scopes in multi_search (#405) @ellnix
    You can now apply ActiveRecord scopes to multi_search:
    multi_search_results = Meilisearch::Rails.multi_search(
      # scope may be a relation
      'books' => { q: 'Harry', scope: Book.where("year < 2005") },
      # or a model
      'mangas' => { q: 'Attack', scope: Manga }
    )
    With this change, the :class_name option has been deprecated (since :scope achieves the same outcome), using it will cause a warning to be logged.
  • Add federated search (#393) @ellnix
    This gem now supports federated search! Federated search is similar to multi-search, except the results are a single array sorted by ranking rules:
    results = Meilisearch::Rails.federated_search(
      queries: [
        { q: 'Harry', scope: Book.all },
        { q: 'Attack on Titan', scope: Manga.all }
      ]
    )
    <ul>
      <% results.each do |record| %>
        <li><%= record.title %></li>
      <% end %>
    </ul>
    
    
    <ul>
      <!-- Attack on Titan appears first even though it was specified second, 
           it's ranked higher because it's a closer match -->
      <li>Attack on Titan</li>
      <li>Harry Potter and the Philosopher's Stone</li>
      <li>Harry Potter and the Chamber of Secrets</li>
    </ul>
    Learn more in the README.

Thanks again to @ellnix! 🎉

v0.14.3 🚂

13 Mar 19:49
5450df2
Compare
Choose a tag to compare

🚀 Enhancements

  • Allow custom group names in multi search (#391) @ellnix

    From the README:
    You can search the same index multiple times by specifying :index_uid:

    query = 'hero'
    multi_search_results = MeiliSearch::Rails.multi_search(
      'Isekai Manga' => { q: query, class_name: 'Manga', filters: 'genre:isekai', index_uid: 'mangas_production' }
      'Shounen Manga' => { q: query, class_name: 'Manga', filters: 'genre:shounen', index_uid: 'mangas_production' }
      'Steampunk Manga' => { q: query, class_name: 'Manga', filters: 'genre:steampunk', index_uid: 'mangas_production' }
    )

🐛 Bug Fixes

  • Fix will_paginate crash when Meilisearch disabled (#385) @ellnix
  • Properly set limit in Kaminari (#395) @ellnix
  • Prevent background job queuing when deactivated (#401) @ellnix

Thanks again to @ellnix! 🎉

v0.14.2 🚂

15 Jan 12:01
5c408f1
Compare
Choose a tag to compare
  • Hotfix: Properly constrain version of meilisearch-ruby gem (#387) @ellnix

⚠️ Breaking changes

🚀 Enhancements

Thanks again to @bendangelo, @brunoocasali, @curquiza, @ellnix, @meili-bors[bot] ! 🎉

v0.14.1 🚂

25 Sep 13:11
46ecbea
Compare
Choose a tag to compare

🚀 Enhancements

  • Split spec/integration_spec.rb by @ellnix in #350
  • Fixed soft_deprecate warnings in meilisearch-ruby by @yassun in #372
  • Remove searchable attr warning for nested attrs by @ellnix in #369
  • Target ruby 3 with rubocop by @ellnix in #370

Thanks again to @brunoocasali, @curquiza, @kobaltz, @meili-bors[bot] ! 🎉

v0.14.0 🚂

10 Jul 13:47
40a6abb
Compare
Choose a tag to compare

⚠️ Breaking changes

  • Update meilisearch-ruby to > v0.28 and deprecated ruby versions prior to 3 (#367) @curquiza

🚀 Enhancements

Thanks again to @brunoocasali, @curquiza, @kobaltz, @meili-bors[bot] ! 🎉

v0.13.1 🚂

28 May 19:21
e4037a5
Compare
Choose a tag to compare

🐛 Bug Fixes

Thanks again to @coder2000! 🎉

v0.13.0 🚂

10 May 14:04
62762b6
Compare
Choose a tag to compare

🚀 Enhancements

🐛 Bug Fixes

Thanks again to @KatsukiFujimoto, @brunoocasali, and @ellnix! 🎉

v0.12.0 🚂

29 Feb 13:40
69701cc
Compare
Choose a tag to compare

🚀 Enhancements

Meilisearch Rails now supports multi search 🎉

multi_search_results = MeiliSearch::Rails.multi_search(
  Book => { q: 'Harry' },
  Manga => { q: 'Attack' }
)

See usage in the README.

Thanks again to @ellnix and @meili-bors[bot]! 🎉

v0.11.1 🚂

26 Feb 14:15
cda3f08
Compare
Choose a tag to compare

🐛 Bug Fixes

⚙️ Maintenance/misc

Thanks again to @brunoocasali, @ellnix! 🎉