Making WordPress.org

Changeset 4439


Ignore:
Timestamp:
11/28/2016 05:03:12 AM (10 years ago)
Author:
tellyworth
Message:

Plugin directory: assorted search tweaks.

See #1692

File:
1 edited

Legend:

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

    r4434 r4439  
    310310                        'contributors_active_installs',
    311311                        'tested',
    312                         'meta.rating.double',
     312                        'rating',
     313                        'plugin_modified',
    313314                        'post_id',
    314315                        'blog_id'
    … …  
    754755                                                                        'tested' => array(
    755756                                                                                'origin' => sprintf( '%0.1f', WP_CORE_STABLE_BRANCH ),
    756                                                                                 'scale' => 0.5,
     757                                                                                'offset' => 0.1,
     758                                                                                'scale' => 0.3,
    757759                                                                                'decay' => 0.6,
    758760                                                                        ),
    … …  
    761763                                                        array(
    762764                                                                'field_value_factor' => array(
    763                                                                         'field' => 'meta.active_installs.long',
    764                                                                         'factor' => 2,
     765                                                                        'field' => 'active_installs',
     766                                                                        'factor' => 1,
    765767                                                                        'modifier' => 'log2p',
     768                                                                        'missing' => 1,
    766769                                                                ),
    767770                                                        ),
    … …  
    769772                                                                'field_value_factor' => array(
    770773                                                                        'field' => 'support_threads_resolved',
    771                                                                         'factor' => 1,
     774                                                                        'factor' => 2,
    772775                                                                        'modifier' => 'log2p',
     776                                                                        'missing' => 0,
     777                                                                ),
     778                                                        ),
     779                                                        array(
     780                                                                'field_value_factor' => array(
     781                                                                        'field' => 'rating',
     782                                                                        'factor' => 0.5,
     783                                                                        'modifier' => 'sqrt',
     784                                                                        'missing' => 3,
    773785                                                                ),
    774786                                                        ),
Note: See TracChangeset for help on using the changeset viewer.