Changeset 3494 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/site-search/jetpack-search.php
- Timestamp:
- 06/20/2016 09:10:01 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/site-search/jetpack-search.php
r3470 r3494 444 444 445 445 'query' => null, // Search phrase 446 'query_fields' => array( 'title ^2', 'content', 'author', 'tag', 'category', 'slug_ngram', 'contributors' ),446 'query_fields' => array( 'title_en^2', 'content_en', 'author', 'tag', 'category', 'slug_ngram', 'contributors' ), 447 447 448 448 'post_type' => null, // string or an array … … 669 669 public static function score_query_by_recency( $query ) { 670 670 //Newer content gets weighted slightly higher 671 $date_scale = '360d'; 672 $date_decay = 0.9; 671 $date_scale = '720d'; 672 $date_offset = '180d'; 673 $date_decay = 0.95; 673 674 $date_origin = date( 'Y-m-d' ); 674 675 … … 683 684 'date_gmt' => array( 684 685 'origin' => $date_origin, 686 'offset' => $date_offset, 685 687 'scale' => $date_scale, 686 688 'decay' => $date_decay, … … 691 693 'field' => 'meta.active_installs.long', 692 694 'factor' => 1.0, 693 'modifier' => ' log1p',695 'modifier' => 'sqrt', 694 696 ), 695 697 ),
Note: See TracChangeset
for help on using the changeset viewer.