@@ -807,7 +807,7 @@ public function createResult(QueryInterface $query, $response): ResultInterface
807
807
*
808
808
* @return ResultInterface
809
809
*/
810
- public function execute (QueryInterface $ query , $ endpoint = null ): ResultInterface
810
+ public function execute (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): ResultInterface
811
811
{
812
812
$ event = new PreExecuteEvent ($ query );
813
813
$ this ->eventDispatcher ->dispatch ($ event );
@@ -833,7 +833,7 @@ public function execute(QueryInterface $query, $endpoint = null): ResultInterfac
833
833
*
834
834
* @return Response
835
835
*/
836
- public function executeRequest (Request $ request , $ endpoint = null ): Response
836
+ public function executeRequest (Request $ request , Endpoint | string | null $ endpoint = null ): Response
837
837
{
838
838
// load endpoint by string or by using the default one in case of a null value
839
839
if (!($ endpoint instanceof Endpoint)) {
@@ -872,7 +872,7 @@ public function executeRequest(Request $request, $endpoint = null): Response
872
872
*
873
873
* @return ResultInterface|\Solarium\QueryType\Ping\Result
874
874
*/
875
- public function ping (QueryInterface $ query , $ endpoint = null ): PingResult
875
+ public function ping (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): PingResult
876
876
{
877
877
return $ this ->execute ($ query , $ endpoint );
878
878
}
@@ -896,7 +896,7 @@ public function ping(QueryInterface $query, $endpoint = null): PingResult
896
896
*
897
897
* @return ResultInterface|\Solarium\QueryType\Update\Result
898
898
*/
899
- public function update (QueryInterface $ query , $ endpoint = null ): UpdateResult
899
+ public function update (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): UpdateResult
900
900
{
901
901
return $ this ->execute ($ query , $ endpoint );
902
902
}
@@ -919,7 +919,7 @@ public function update(QueryInterface $query, $endpoint = null): UpdateResult
919
919
*
920
920
* @return ResultInterface|\Solarium\QueryType\Select\Result\Result
921
921
*/
922
- public function select (QueryInterface $ query , $ endpoint = null ): SelectResult
922
+ public function select (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): SelectResult
923
923
{
924
924
return $ this ->execute ($ query , $ endpoint );
925
925
}
@@ -942,7 +942,7 @@ public function select(QueryInterface $query, $endpoint = null): SelectResult
942
942
*
943
943
* @return ResultInterface|\Solarium\QueryType\MoreLikeThis\Result
944
944
*/
945
- public function moreLikeThis (QueryInterface $ query , $ endpoint = null ): MoreLikeThisResult
945
+ public function moreLikeThis (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): MoreLikeThisResult
946
946
{
947
947
return $ this ->execute ($ query , $ endpoint );
948
948
}
@@ -958,7 +958,7 @@ public function moreLikeThis(QueryInterface $query, $endpoint = null): MoreLikeT
958
958
*
959
959
* @return ResultInterface|\Solarium\QueryType\Analysis\Result\Document|\Solarium\QueryType\Analysis\Result\Field
960
960
*/
961
- public function analyze (QueryInterface $ query , $ endpoint = null ): ResultInterface
961
+ public function analyze (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): ResultInterface
962
962
{
963
963
return $ this ->execute ($ query , $ endpoint );
964
964
}
@@ -974,7 +974,7 @@ public function analyze(QueryInterface $query, $endpoint = null): ResultInterfac
974
974
*
975
975
* @return ResultInterface|\Solarium\QueryType\Terms\Result
976
976
*/
977
- public function terms (QueryInterface $ query , $ endpoint = null ): TermsResult
977
+ public function terms (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): TermsResult
978
978
{
979
979
return $ this ->execute ($ query , $ endpoint );
980
980
}
@@ -990,7 +990,7 @@ public function terms(QueryInterface $query, $endpoint = null): TermsResult
990
990
*
991
991
* @return ResultInterface|\Solarium\QueryType\Spellcheck\Result\Result
992
992
*/
993
- public function spellcheck (QueryInterface $ query , $ endpoint = null ): SpellcheckResult
993
+ public function spellcheck (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): SpellcheckResult
994
994
{
995
995
return $ this ->execute ($ query , $ endpoint );
996
996
}
@@ -1006,7 +1006,7 @@ public function spellcheck(QueryInterface $query, $endpoint = null): SpellcheckR
1006
1006
*
1007
1007
* @return ResultInterface|\Solarium\QueryType\Suggester\Result\Result
1008
1008
*/
1009
- public function suggester (QueryInterface $ query , $ endpoint = null ): SuggesterResult
1009
+ public function suggester (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): SuggesterResult
1010
1010
{
1011
1011
return $ this ->execute ($ query , $ endpoint );
1012
1012
}
@@ -1022,7 +1022,7 @@ public function suggester(QueryInterface $query, $endpoint = null): SuggesterRes
1022
1022
*
1023
1023
* @return ResultInterface|\Solarium\QueryType\Extract\Result
1024
1024
*/
1025
- public function extract (QueryInterface $ query , $ endpoint = null ): ExtractResult
1025
+ public function extract (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): ExtractResult
1026
1026
{
1027
1027
return $ this ->execute ($ query , $ endpoint );
1028
1028
}
@@ -1038,7 +1038,7 @@ public function extract(QueryInterface $query, $endpoint = null): ExtractResult
1038
1038
*
1039
1039
* @return ResultInterface|\Solarium\QueryType\RealtimeGet\Result
1040
1040
*/
1041
- public function realtimeGet (QueryInterface $ query , $ endpoint = null ): RealtimeGetResult
1041
+ public function realtimeGet (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): RealtimeGetResult
1042
1042
{
1043
1043
return $ this ->execute ($ query , $ endpoint );
1044
1044
}
@@ -1054,7 +1054,7 @@ public function realtimeGet(QueryInterface $query, $endpoint = null): RealtimeGe
1054
1054
*
1055
1055
* @return ResultInterface|\Solarium\QueryType\Luke\Result\Result
1056
1056
*/
1057
- public function luke (QueryInterface $ query , $ endpoint = null ): LukeResult
1057
+ public function luke (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): LukeResult
1058
1058
{
1059
1059
return $ this ->execute ($ query , $ endpoint );
1060
1060
}
@@ -1070,7 +1070,7 @@ public function luke(QueryInterface $query, $endpoint = null): LukeResult
1070
1070
*
1071
1071
* @return ResultInterface|\Solarium\QueryType\Server\CoreAdmin\Result\Result
1072
1072
*/
1073
- public function coreAdmin (QueryInterface $ query , $ endpoint = null ): CoreAdminResult
1073
+ public function coreAdmin (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): CoreAdminResult
1074
1074
{
1075
1075
return $ this ->execute ($ query , $ endpoint );
1076
1076
}
@@ -1086,7 +1086,7 @@ public function coreAdmin(QueryInterface $query, $endpoint = null): CoreAdminRes
1086
1086
*
1087
1087
* @return ResultInterface|\Solarium\QueryType\Server\Collections\Result\ClusterStatusResult
1088
1088
*/
1089
- public function collections (QueryInterface $ query , $ endpoint = null ): ResultInterface
1089
+ public function collections (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): ResultInterface
1090
1090
{
1091
1091
return $ this ->execute ($ query , $ endpoint );
1092
1092
}
@@ -1102,7 +1102,7 @@ public function collections(QueryInterface $query, $endpoint = null): ResultInte
1102
1102
*
1103
1103
* @return ResultInterface|\Solarium\QueryType\Server\Configsets\Result\ListConfigsetsResult
1104
1104
*/
1105
- public function configsets (QueryInterface $ query , $ endpoint = null ): ResultInterface
1105
+ public function configsets (QueryInterface $ query , Endpoint | string | null $ endpoint = null ): ResultInterface
1106
1106
{
1107
1107
return $ this ->execute ($ query , $ endpoint );
1108
1108
}
0 commit comments