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_400.php +5 -5 4.6.05.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 '4.0';
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 4.0', '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 all search terms in one field first, then prioritize them over search terms matched in different fields.', '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 [
@@ -125,9 +125,9 @@
125 125 * @param array $search_fields Search term(s)
126 126 * @param array $query_vars Query vars
127 127 * @return array ES `query`
128 128 */
129 - protected function apply_legacy_filters( array $query, string $indexable_slug, array $search_fields, array $query_vars ) : array {
129 + protected function apply_legacy_filters( array $query, string $indexable_slug, array $search_fields, array $query_vars ): array {
130 130 if ( 'post' !== $indexable_slug ) {
131 131 return $query;
132 132 }
133 133