Changeset 3535 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/site-search/jetpack-search.php
- Timestamp:
- 06/22/2016 10:26:30 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
r3529 r3535 266 266 'date_range' => array( 'field' => 'modified', 'gte' => $date_cutoff, 'lte' => $date_today ), 267 267 'tested_range' => array( 'field' => 'meta.tested.value', 'gte' => $version_cutoff ), 268 'filters' => array( 269 array( 'term' => array( 'disabled' => array( 'value' => false ) ) ), 270 array( 'exists' => array( 'field' => 'meta.active_installs.long' ) ), 271 ), 268 272 ); 269 273 … … 463 467 'date_range' => null, // array( 'field' => 'date', 'gt' => 'YYYY-MM-dd', 'lte' => 'YYYY-MM-dd' ); date formats: 'YYYY-MM-dd' or 'YYYY-MM-dd HH:MM:SS' 464 468 'tested_range' => null, 469 'filters' => array(), 465 470 466 471 'orderby' => null, // Defaults to 'relevance' if query is set, otherwise 'date'. Pass an array for multiple orders. … … 543 548 unset( $args['tested_range']['field'] ); 544 549 $filters[] = array( 'range' => array( $field => $args['tested_range'] ) ); 550 } 551 552 if ( is_array( $args['filters'] ) ) { 553 $filters = array_merge( $filters, $args['filters'] ); 545 554 } 546 555 … … 687 696 $date_scale = '720d'; 688 697 $date_offset = '180d'; 689 $date_decay = 0. 9;698 $date_decay = 0.7; 690 699 $date_origin = date( 'Y-m-d' ); 691 700 … … 708 717 'field_value_factor' => array( 709 718 'field' => 'meta.active_installs.long', 710 'factor' => 1.0,719 'factor' => 0.8, 711 720 'modifier' => 'sqrt', 712 721 ), … … 717 726 ) 718 727 ), 719 'filter' => array(720 'exists' => array(721 'field' => 'meta.active_installs.long'722 ),723 )724 728 ) 725 729 );
Note: See TracChangeset
for help on using the changeset viewer.