Skip to content

Commit 31cc6bb

Browse files
committed
Plugin Directory: Search: Restore slug boosting in the search algorithm.
This was a bug introduced in [13640], which went unnoticed due to a desire to reduce reliance upon slugs for search boosting. Slug boosting has some legitimate uses however, so this is being restored for the time being. Props jeangalea, gibrown. See #8225/ git-svn-id: https://meta.svn.wordpress.org/sites/trunk@14809 74240141-8908-4e6f-9713-ba540dce6ec7
1 parent 76651ed commit 31cc6bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public function jetpack_search_es_query_args( $es_query_args, $query ) {
278278
$should_match[] = [
279279
'multi_match' => [
280280
'query' => $search_phrase,
281-
'fields' => $this->localise_es_fields( 'title', 'slug_text' ),
281+
'fields' => $this->localise_es_fields( [ 'title', 'slug_text' ] ),
282282
'type' => 'most_fields',
283283
'boost' => 5,
284284
],

0 commit comments

Comments
 (0)