Hi, can anybody help me to enable completion suggester feature in my wiki? The completion suggester options also does not appear in Special:Preferences#mw-prefsection-searchoptions. Any steps that I miss? Thanks for any help.
Topic on Extension talk:CirrusSearch/Flow
Appearance
I also struggled to get the suggester working on the latest version. Without knowing your exact setup, this is what worked for me:
LocalSettings.php:
$wgCirrusSearchUseCompletionSuggester = 'yes'; $wgCirrusSearchCompletionSettings = 'fuzzy-subphrases'; $wgCirrusSearchPhraseSuggestProfiles = 'default'; $wgCirrusSearchCompletionSuggesterSubphrases = [ 'build' => true, 'use' => true, 'type' => 'anywords', 'limit' => 10, ]; $wgCirrusSearchCompletionSuggesterUseDefaultSort = true;
You will also need to run <wiki directory>/extensions/CirrusSearch/maintenance/updateSuggesterIndex.php at least once. I ended up setting a cron job to run the updater script nightly.
For some reason the suggester index was not getting updated through the job queue for language wikis on my wiki family, only for the English wiki were suggestions getting updates. Manually running updateSuggesterIndex.php for the language wiki fixed that, so now I am also creating a cron job to make sure it runs from time to time for each language wiki.
Using your configuration I got the following error:
Exception caught: Config entry CirrusSearchPhraseSuggestProfiles must be an array or unset",
therefore I just unset $wgCirrusSearchPhraseSuggestProfiles