PluginProbe
ElasticPress / 5.3.5
ElasticPress v5.3.5
5.3.5 5.3.4 3.6.5 3.6.6 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 5.0.0 5.0.1 5.0.2 All 108 releases
← All changes | includes/classes/SearchAlgorithm/Version_350.php +5 -5 4.7.25.3.5 View file →
@@ -22,9 +22,9 @@
22 22 * Search algorithm slug.
23 23 *
24 24 * @return string
25 25 */
26 - public function get_slug() : string {
26 + public function get_slug(): string {
27 27 return '3.5';
28 28 }
29 29
30 30 /**
@@ -31,9 +31,9 @@
31 31 * Search algorithm name.
32 32 *
33 33 * @return string
34 34 */
35 - public function get_name() : string {
35 + public function get_name(): string {
36 36 return esc_html__( 'Version 3.5', 'elasticpress' );
37 37 }
38 38
39 39 /**
@@ -40,9 +40,9 @@
40 40 * Search algorithm description.
41 41 *
42 42 * @return string
43 43 */
44 - public function get_description() : string {
44 + public function get_description(): string {
45 45 return esc_html__( 'Search for the existence of all words in the search first, then return results based on how closely those words appear.', 'elasticpress' );
46 46 }
47 47
48 48 /**
@@ -53,9 +53,9 @@
53 53 * @param array $search_fields Search fields
54 54 * @param array $query_vars Query vars
55 55 * @return array ES `query`
56 56 */
57 - protected function get_raw_query( string $indexable_slug, string $search_term, array $search_fields, array $query_vars ) : array {
57 + protected function get_raw_query( string $indexable_slug, string $search_term, array $search_fields, array $query_vars ): array {
58 58 $query = [
59 59 'bool' => [
60 60 'should' => [
61 61 [
@@ -92,9 +92,9 @@
92 92 * @param array $search_fields Search term(s)
93 93 * @param array $query_vars Query vars
94 94 * @return array ES `query`
95 95 */
96 - protected function apply_legacy_filters( array $query, string $indexable_slug, array $search_fields, array $query_vars ) : array {
96 + protected function apply_legacy_filters( array $query, string $indexable_slug, array $search_fields, array $query_vars ): array {
97 97 if ( 'post' !== $indexable_slug ) {
98 98 return $query;
99 99 }
100 100