Smuggli has uploaded a new change for review. https://gerrit.wikimedia.org/r/158615
Change subject: One suggestion is enough ...................................................................... One suggestion is enough For performance reasons one suggestion is enough Change-Id: I7341bcb72b5bb158d5be1b7f7a14b81e44e4ae7c --- M ExtendedSearch/includes/SearchService.class.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions refs/changes/15/158615/1 diff --git a/ExtendedSearch/includes/SearchService.class.php b/ExtendedSearch/includes/SearchService.class.php index a990c37..c588359 100644 --- a/ExtendedSearch/includes/SearchService.class.php +++ b/ExtendedSearch/includes/SearchService.class.php @@ -209,6 +209,7 @@ $aParams['spellcheck'] = 'true'; $aParams['q'] = $sQuery; $aParams['spellcheck.q'] = $sQuery; + $aParams['spellcheck.count'] = 1; if ( $bIndexing === false ) { $aParams['wt'] = self::SOLR_WRITER; @@ -243,7 +244,7 @@ */ public function getSpellcheck( $sSearch, $aSearchOptions, $bIndexing = false ) { try { - $oHits = $this->spellcheck( $sSearch, 0, 3, $aSearchOptions, $bIndexing ); + $oHits = $this->spellcheck( $sSearch, 0, 1, $aSearchOptions, $bIndexing ); } catch ( Exception $e ) { return false; } -- To view, visit https://gerrit.wikimedia.org/r/158615 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7341bcb72b5bb158d5be1b7f7a14b81e44e4ae7c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: master Gerrit-Owner: Smuggli <mug...@hallowelt.biz> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits