Skip to content

Commit eadc6e6

Browse files
committed
Added missing Query factory methods
1 parent 71ab3e8 commit eadc6e6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Query/Query.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ public static function functionsQuery(string $field): FunctionsQuery
8484
return new FunctionsQuery($field);
8585
}
8686

87+
public static function GeoBoundingBoxQuery(string $field): GeoBoundingBoxQuery
88+
{
89+
return new GeoBoundingBoxQuery($field);
90+
}
91+
8792
/**
8893
* @param float[]|int[] $position
8994
*/
@@ -114,4 +119,17 @@ public static function rankFeature(string $field): RankFeatureQuery
114119
{
115120
return new RankFeatureQuery($field);
116121
}
122+
123+
public static function exists(string $field): ExistsQuery
124+
{
125+
return new ExistsQuery($field);
126+
}
127+
128+
/**
129+
* @param mixed[]|string[] $fields
130+
*/
131+
public static function simpleQueryString(array $fields, string $query): SimpleQueryStringQuery
132+
{
133+
return new SimpleQueryStringQuery($fields, $query);
134+
}
117135
}

0 commit comments

Comments
 (0)