Skip to content

Commit c5ab72a

Browse files
authored
Fix Broken Link to Sample Data (Azure#23028)
Fix Broken Link to Sample Data
1 parent e8781bc commit c5ab72a

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

sdk/search/azure-search-documents/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ tables.)_ The `azure-search-documents` client library exposes operations on thes
193193

194194
## Examples
195195

196-
The following examples all use a simple [Hotel data set](https://docs.microsoft.com/samples/azure-samples/azure-search-sample-data/azure-search-sample-data/)
196+
The following examples all use a simple [Hotel data set](https://github.com/Azure-Samples/azure-search-sample-data)
197197
that you can [import into your own index from the Azure portal.](https://docs.microsoft.com/azure/search/search-get-started-portal#step-1---start-the-import-data-wizard-and-create-a-data-source)
198198
These are just a few of the basics - please [check out our Samples][samples_readme] for much more.
199199

sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/RefineSearchCapabilitiesExample.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
import java.util.List;
3131

3232
/**
33-
* This scenario assumes an existing search solution, with index and an indexer setup (see LifecycleSetupExample)
34-
* For more information visit Azure Cognitive Search Sample Data
35-
* https://docs.microsoft.com/en-us/samples/azure-samples/azure-search-sample-data/azure-search-sample-data/
33+
* This scenario assumes an existing search solution, with index and an indexer setup (see LifecycleSetupExample) For
34+
* more information visit <a href="https://github.com/Azure-Samples/azure-search-sample-data">Azure Cognitive Search
35+
* Sample Data</a>.
3636
*/
3737
public class RefineSearchCapabilitiesExample {
3838

3939
/**
40-
* From the Azure portal, get your Azure Cognitive Search service URL and API admin key,
41-
* and set the values of these environment variables:
40+
* From the Azure portal, get your Azure Cognitive Search service URL and API admin key, and set the values of these
41+
* environment variables:
4242
*/
4343
private static final String ENDPOINT = Configuration.getGlobalConfiguration().get("AZURE_COGNITIVE_SEARCH_ENDPOINT");
4444
private static final String ADMIN_KEY = Configuration.getGlobalConfiguration().get("AZURE_COGNITIVE_SEARCH_ADMIN_KEY");

sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/RunningSearchSolutionExample.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@
2727

2828
/**
2929
* This scenario assumes an existing search solution, with index and an indexer setup (see LifecycleSetupExample)
30-
* Azure Cognitive Search Sample Data
31-
* https://docs.microsoft.com/en-us/samples/azure-samples/azure-search-sample-data/azure-search-sample-data/
30+
* <a href="https://github.com/Azure-Samples/azure-search-sample-data">Azure Cognitive Search Sample Data</a>.
3231
*/
3332
public class RunningSearchSolutionExample {
3433

3534
/**
36-
* From the Azure portal, get your Azure Cognitive Search service URL and API admin key,
37-
* and set the values of these environment variables:
35+
* From the Azure portal, get your Azure Cognitive Search service URL and API admin key, and set the values of these
36+
* environment variables:
3837
*/
3938
private static final String ENDPOINT = Configuration.getGlobalConfiguration().get("AZURE_COGNITIVE_SEARCH_ENDPOINT");
4039
private static final String ADMIN_KEY = Configuration.getGlobalConfiguration().get("AZURE_COGNITIVE_SEARCH_ADMIN_KEY");

sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/indexes/LifecycleSetupExample.java

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,23 @@
2828
import java.util.List;
2929

3030
/**
31-
* This scenario assumes an existing search solution and uses a pre-population data source with sample data set
32-
* For more information visit Azure Cognitive Search Sample Data:
33-
* https://docs.microsoft.com/en-us/samples/azure-samples/azure-search-sample-data/azure-search-sample-data/
31+
* This scenario assumes an existing search solution and uses a pre-population data source with sample data set For more
32+
* information visit Azure Cognitive Search Sample Data: https://docs.microsoft.com/en-us/samples/azure-samples/azure-search-sample-data/azure-search-sample-data/
3433
*/
3534
public class LifecycleSetupExample {
3635
/**
37-
* From the Azure portal, get your Azure Cognitive Search service URL and API admin key,
38-
* and set the values of these environment variables:
36+
* From the Azure portal, get your Azure Cognitive Search service URL and API admin key, and set the values of these
37+
* environment variables:
3938
*/
40-
private static final String ENDPOINT = Configuration.getGlobalConfiguration().get("AZURE_COGNITIVE_SEARCH_ENDPOINT");
41-
private static final String ADMIN_KEY = Configuration.getGlobalConfiguration().get("AZURE_COGNITIVE_SEARCH_ADMIN_KEY");
39+
private static final String ENDPOINT = Configuration.getGlobalConfiguration()
40+
.get("AZURE_COGNITIVE_SEARCH_ENDPOINT");
41+
private static final String ADMIN_KEY = Configuration.getGlobalConfiguration()
42+
.get("AZURE_COGNITIVE_SEARCH_ADMIN_KEY");
4243

4344
// Using hard coded connection string to pre-populated Cosmos DB database with sample data set
44-
// For more information visit https://docs.microsoft.com/en-us/samples/azure-samples/azure-search-sample-data/azure-search-sample-data/
45-
private static final String COSMOS_CONNECTION_STRING = "AccountEndpoint=https://hotels-docbb.documents.azure.com:443/;AccountKey=4UPsNZyFAjgZ1tzHPGZaxS09XcwLrIawbXBWk6IixcxJoSePTcjBn0mi53XiKWu8MaUgowUhIovOv7kjksqAug==;Database=SampleData";
45+
// For more information visit https://github.com/Azure-Samples/azure-search-sample-data
46+
private static final String COSMOS_CONNECTION_STRING = Configuration.getGlobalConfiguration()
47+
.get("AZURE_COSMOS_CONNECTION_STRING");
4648
private static final String COSMOS_COLLECTION_NAME = "hotels";
4749

4850
private static final String INDEX_NAME = "hotels-sample-index1";

0 commit comments

Comments
 (0)