Releases: clarkwinkelmann/flarum-ext-scout
Advanced Search Highlight Latest fixes
Fix for Advanced Search Highlight integration when results contain multi-byte characters
Advanced Search Highlight
Added compatibility with Advanced Search Highlight (Meilisearch only)
Improve quotes handling
- 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
- 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
- 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
- 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 andnull
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
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
- 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
Fix error if no posts match query
Initial release
Initial release