Making WordPress.org

Ticket #6677: plugin-search-es7.patch

File plugin-search-es7.patch, 815 bytes (added by robfelty, 2 years ago)

patch for the plugin search

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

    diff --git a/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-search.php b/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-search.php
    index 40c554702..a81f71e96 100644
    a b class Plugin_Search { 
    255255                                        'title_en.ngram^' . $this->en_boost,
    256256                                ] ),
    257257                                'type' => 'phrase',
    258                                 'boost' => 0.2,
     258                                'boost' => 2,
    259259                                ],
    260260                        ];
    261261
    class Plugin_Search { 
    270270                                        'title_en^' . $this->en_boost,
    271271                                        'slug_text',
    272272                                  ] ),
    273                                   'type' => 'best_fields',
    274                                   'boost' => 2,
     273                                  'type' => 'most_fields',
     274                                  'boost' => 5,
    275275                                ],
    276276                        ];
    277277