diff --git a/sde_collections/sinequa_api.py b/sde_collections/sinequa_api.py index 391dab9e..85552bda 100644 --- a/sde_collections/sinequa_api.py +++ b/sde_collections/sinequa_api.py @@ -73,7 +73,10 @@ def process_response(self, url: str, payload: dict[str, Any]) -> Any: return meaningful_response def query(self, page: int, collection_config_folder: str = "") -> Any: - url = f"{self.base_url}/api/v1/search.query?Password={self.password}&User={self.user}" + if self.server_name: + url = f"{self.base_url}/api/v1/search.query?Password={self.password}&User={self.user}" + else: + url = f"{self.base_url}/api/v1/search.query" payload = { "app": self.app_name, "query": {