Making WordPress.org

Changeset 12362


Ignore:
Timestamp:
01/16/2023 06:53:42 AM (2 years ago)
Author:
dd32
Message:

Plugin Directory: Search: Alter the Elastic Search query to provide a more expected result set on the new ES index.

For more detailed reasonings, see the ticket below.

Props robfelty.
Fixes #6677.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-search.php

    r12158 r12362  
    256256                ] ),
    257257                'type' => 'phrase',
    258                 'boost' => 0.2,
     258                'boost' => 2,
    259259                ],
    260260            ];
     
    271271                    'slug_text',
    272272                  ] ),
    273                   'type' => 'best_fields',
    274                   'boost' => 2,
     273                  'type' => 'most_fields',
     274                  'boost' => 5,
    275275                ],
    276276            ];
Note: See TracChangeset for help on using the changeset viewer.