@@ -16,7 +16,7 @@ Each namespace has its own authentication requirements and access patterns. Whil
1616// Example of accessing Client namespace
1717Glean glean = Glean . builder()
1818 .apiToken(" client-token" )
19- .serverURL(" mycompany-be.glean.com" )
19+ .serverURL(" https:// mycompany-be.glean.com" )
2020 .build();
2121glean. client(). search(). query()
2222 .searchRequest(SearchRequest . builder(). query(" search term" ). build())
@@ -25,7 +25,7 @@ glean.client().search().query()
2525// Example of accessing Indexing namespace
2626Glean glean = Glean . builder()
2727 .apiToken(" indexing-token" )
28- .serverURL(" mycompany-be.glean.com" )
28+ .serverURL(" https:// mycompany-be.glean.com" )
2929 .build();
3030glean. indexing(). documents(). index()
3131 .request(DocumentBulkIndexRequest . builder() /* document data */ .build())
@@ -1314,7 +1314,7 @@ The recommended way to configure your Glean backend is using `.serverURL()` with
13141314
13151315``` java
13161316Glean sdk = Glean . builder()
1317- .serverURL(" mycompany-be.glean.com" )
1317+ .serverURL(" https:// mycompany-be.glean.com" )
13181318 .apiToken(System . getenv(). getOrDefault(" GLEAN_API_TOKEN" , " " ))
13191319 .build();
13201320```
@@ -1636,7 +1636,7 @@ export X_GLEAN_INCLUDE_EXPERIMENTAL="true"
16361636// Environment variables are automatically read by the SDK
16371637Glean glean = Glean . builder()
16381638 .apiToken(System . getenv(" GLEAN_API_TOKEN" ))
1639- .serverURL(" mycompany-be.glean.com" )
1639+ .serverURL(" https:// mycompany-be.glean.com" )
16401640 .build();
16411641```
16421642
@@ -1647,7 +1647,7 @@ import com.glean.api_client.glean_api_client.hooks.GleanBuilder;
16471647
16481648Glean glean = GleanBuilder . create()
16491649 .apiToken(System . getenv(" GLEAN_API_TOKEN" ))
1650- .serverURL(" mycompany-be.glean.com" )
1650+ .serverURL(" https:// mycompany-be.glean.com" )
16511651 .excludeDeprecatedAfter(" 2026-10-15" )
16521652 .includeExperimental(true )
16531653 .build();
0 commit comments