Jdouglas has uploaded a new change for review. https://gerrit.wikimedia.org/r/202230
Change subject: Use top_terms_boost_N over top_terms_N ...................................................................... Use top_terms_boost_N over top_terms_N Per recommendations from the offical docs[1], drop the not-recommended top_terms_N in favor of the recommended top_terms_boost_N for term rewriting. 1. https://github.com/elastic/elasticsearch-definitive-guide/blob/a78a8bfe4ea87a59d4f570dd6d9f541dcc845bc6/stash/rewrite.asciidoc Change-Id: I9b62df2f2d7f307225cb3e216760464f672c2981 --- M includes/Search/Filters.php M includes/Searcher.php 2 files changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch refs/changes/30/202230/1 diff --git a/includes/Search/Filters.php b/includes/Search/Filters.php index 0e30210..40deb35 100644 --- a/includes/Search/Filters.php +++ b/includes/Search/Filters.php @@ -146,7 +146,7 @@ $query->setDefaultOperator( 'AND' ); $query->setAllowLeadingWildcard( false ); $query->setFuzzyPrefixLength( 2 ); - $query->setRewrite( 'top_terms_128' ); + $query->setRewrite( 'top_terms_boost_128' ); $wrappedQuery = $searcher->wrapInSaferIfPossible( $query, false ); $updateReferences = diff --git a/includes/Searcher.php b/includes/Searcher.php index 2c0ba8a..a075875 100644 --- a/includes/Searcher.php +++ b/includes/Searcher.php @@ -1153,7 +1153,7 @@ $query->setDefaultOperator( 'AND' ); $query->setAllowLeadingWildcard( false ); $query->setFuzzyPrefixLength( 2 ); - $query->setRewrite( 'top_terms_128' ); + $query->setRewrite( 'top_terms_boost_128' ); return $this->wrapInSaferIfPossible( $query, $isRescore ); } -- To view, visit https://gerrit.wikimedia.org/r/202230 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9b62df2f2d7f307225cb3e216760464f672c2981 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CirrusSearch Gerrit-Branch: master Gerrit-Owner: Jdouglas <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
