Topic on Extension talk:CirrusSearch

CirrusSearch not showing autocomplete on Main Search Bar

3
2601:98A:4102:2530:CDCD:45BD:50B2:2B99 (talkcontribs)

Hello,


CirrusSearch will autocomplete when I am creating a page link and typing in the page name, but it will not autocomplete on the main search page. Here's the LocalSettings.php I have set up.

#CirrusSearch
wfLoadExtension( 'Elastica' );
wfLoadExtension( 'CirrusSearch' );
$wgSearchType = 'CirrusSearch';
$wgCirrusSearchUseCompletionSuggester = 'yes';
$wgJobRunRate = 2;
$wgCirrusSearchCompletionSettings = 'fuzzy-subphrases';
$wgCirrusSearchCompletionSuggesterSubphrases = [
  'build' => true,
  'use' => true,
  'type' => 'anywords',
  'limit' => 10,
];

The indexing appears to be complete, and the search results when I manually press enter seem to be good. But it simply doesn't autocomplete when doing a proper search, despite working in the visualeditor when linking a page.

2601:98A:4102:2530:CDCD:45BD:50B2:2B99 (talkcontribs)

To make things more confusing, if I search, and then run a search in the secondary search bar that pops up above the results, autocomplete works there too. It's only on the wiki's main search bar at the top of the page.

Ciencia Al Poder (talkcontribs)

Hit F12 to open the browser's console and look for any JavaScript error that may break other scripts of the page. Also, type some characters and see if it performs a request to the api to fetch search suggestions, and see if it returns anything in the response.

Reply to "CirrusSearch not showing autocomplete on Main Search Bar"