diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 3621a4aa..f3c162e3 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +- TMS-1088: Add fields to redipress schema + ## [1.59.1] - 2024-10-28 - TMS-1075-fix: Early return added to ImageGalleryFormatter diff --git a/models/search.php b/models/search.php index d4d12d1f..6d1b81e3 100644 --- a/models/search.php +++ b/models/search.php @@ -191,6 +191,17 @@ public static function set_fields_weight( array $fields ) : array { $post_excerpt = array_search( 'post_excerpt', array_column( $fields, 'name' ), true ); $fields[ $post_excerpt ]->weight = 5; + // Include fields + $fields[] = new \Geniem\RediPress\Entity\NumericField( [ + 'name' => 'is_active', + ] ); + $fields[] = new \Geniem\RediPress\Entity\NumericField( [ + 'name' => 'apply_start', + ] ); + $fields[] = new \Geniem\RediPress\Entity\NumericField( [ + 'name' => 'apply_end', + ] ); + return $fields; }