Skip to content

Releases: clarkwinkelmann/flarum-ext-scout

Advanced Search Highlight Latest fixes

08 May 21:20
4e1eecd
Compare
Choose a tag to compare

Fix for Advanced Search Highlight integration when results contain multi-byte characters

Advanced Search Highlight

08 May 16:19
152e0b7
Compare
Choose a tag to compare

Added compatibility with Advanced Search Highlight (Meilisearch only)

Improve quotes handling

11 Jan 13:52
f0b6cac
Compare
Choose a tag to compare
  • Send all quotes verbatim to the Scout driver to fix exact matching syntax (tested with Meilisearch)

You might no longer be able to use quotes in search fields that don't integrate with Scout, since those will also be sent verbatim to MySQL with this change.

Allow customizing MIN_SEARCH_LEN

15 Nov 15:00
d2c6f54
Compare
Choose a tag to compare
  • Add new setting to override Search.MIN_SEARCH_LEN, the minimum query length Flarum requires before retrieving suggestions as you type. This does not affect the complete results page which will always work with any query length.

You must clear the cache after changing the setting. No additional javascript is inserted in the forum bundle if the feature is not used.

Fix integration errors

13 Nov 10:55
f8eacd4
Compare
Choose a tag to compare
  • Fix errors if an extension with Scout integration is installed but Scout is disabled. The event listeners would still be set and cause 500 errors when creating or updating compatible resources.

Extender and improvements

29 Oct 00:45
Compare
Choose a tag to compare
  • Added extender to allow other extensions to add data to existing indexes.
  • Extensions can also make any Eloquent model compatible with Scout just by using the extender (and writing the appropriate full text gambit to fetch results from Scout).
  • Allowed customization of the number of search results requested from the search engine, if not specified, it will be 200 for Meilisearch and null for other engines to fall back to their own defaults.
  • Allowed usage of asynchronous queues to sync indexes, use new setting in admin to enable.
  • Fixed post index not being removed on discussion delete (would not cause problems, but creates a lot of stale records after a while).
  • All CLI commands can now be called with the native Eloquent model path instead of alternative model names, just like in Laravel.

You probably don't need to rebuild your indexes, their format has not changed. Check the README for the list of commands if needed.

This is a major update. You need to run composer require clarkwinkelmann/flarum-ext-scout to upgrade (update will not work unless you set the requirement to * which I do not recommend for this experimental extension)

Developers can read the documentation in the README file to integrate their own extensions with the index. Currently only my closed-source Formulaire extension uses the extender. Over the next few weeks, most of the Flamarkt extensions will get Scout support and can serve as implementation examples.

Added TNTSearch driver

22 Aug 13:52
b66fad2
Compare
Choose a tag to compare

This release adds TNTSearch to the supported Scout drivers. See README for configuration.

This was added as part of testing new engines, but my tests seem to indicate it's a very poor search engine.

Database prefixes support and sync issues

27 Jun 15:22
fec1f74
Compare
Choose a tag to compare
  • Fixed support for using Flarum with a database prefix
  • Fixed posts not syncing to index when created through a discussion or a reply
  • Fixed old content being synced when a post is edited

I recommend running the scout:import-all command to fix all existing broken records.

Bugfixes

27 Apr 17:02
ae2ca53
Compare
Choose a tag to compare

Fix error if no posts match query

Initial release

27 Apr 16:19
4f62759
Compare
Choose a tag to compare

Initial release