Skip to content

Commit 64eb666

Browse files
committed
fix code reference
1 parent d15e51a commit 64eb666

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/search/includes/quickstarts/search-get-started-vector-dotnet.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ The first example demonstrates a basic scenario where you want to find document
113113

114114
1. In the `Program.cs` file of the `VectorSearchExamples` folder, uncomment the method call `SearchExamples.SearchSingleVector(searchClient, vectorizedResult);`. This method executes the following search function in the `SearchExamples.cs` class:
115115

116-
:::code language="csharp" source="~/azure-search-dotnet-samples/quickstart-vector-search/vectorsearchexamples/program.cs" id="SearchSingleVector":::
116+
:::code language="csharp" source="~/azure-search-dotnet-samples/quickstart-vector-search/vectorsearchexamples/SearchExamples.cs" id="SearchSingleVector":::
117117

118118
1. Run the project using the `dotnet run` command:
119119

@@ -138,7 +138,7 @@ You can add filters, but the filters are applied to the nonvector content in you
138138

139139
1. In the `Program.cs` file of the `VectorSearchExamples` folder, uncomment the method call `SearchExamples.SearchSingleVectorWithFilter(searchClient, vectorizedResult);`. This method executes the following search function in the `SearchExamples.cs` class:
140140

141-
:::code language="csharp" source="~/azure-search-dotnet-samples/quickstart-vector-search/vectorsearchexamples/program.cs" id="SearchSingleVectorWithFilter":::
141+
:::code language="csharp" source="~/azure-search-dotnet-samples/quickstart-vector-search/vectorsearchexamples/SearchExamples.cs" id="SearchSingleVectorWithFilter":::
142142

143143
1. Run the project again, and the status of each document is printed below it:
144144

@@ -152,7 +152,7 @@ You can add filters, but the filters are applied to the nonvector content in you
152152

153153
1. The next filter example uses a **geo filter**. In the `Program.cs` file of the `VectorSearchExamples` folder, uncomment the method call `SearchExamples.SingleSearchWithGeoFilter(searchClient, vectorizedResult);`. This method executes the following search function in the `SearchExamples.cs` class:
154154

155-
:::code language="csharp" source="~/azure-search-dotnet-samples/quickstart-vector-search/vectorsearchexamples/program.cs" id="SingleSearchWithGeoFilter":::
155+
:::code language="csharp" source="~/azure-search-dotnet-samples/quickstart-vector-search/vectorsearchexamples/SearchExamples.cs" id="SingleSearchWithGeoFilter":::
156156

157157
The query was the same as the previous [single vector search example](#single-vector-search), but it includes a post-processing exclusion filter and returns only the two hotels within 300 kilometers.
158158

@@ -182,7 +182,7 @@ Hybrid search consists of keyword queries and vector queries in a single search
182182

183183
1. In the `Program.cs` file of the `VectorSearchExamples` folder, uncomment the method call `SearchExamples.SearchHybridVectorAndText(searchClient, vectorizedResult);`. This method executes the following search function in the `SearchExamples.cs` class:
184184

185-
:::code language="csharp" source="~/azure-search-dotnet-samples/quickstart-vector-search/vectorsearchexamples/program.cs" id="SearchHybridVectorAndText":::
185+
:::code language="csharp" source="~/azure-search-dotnet-samples/quickstart-vector-search/vectorsearchexamples/SearchExamples.cs" id="SearchHybridVectorAndText":::
186186

187187
1. Run the project again, and the status of each document is printed below it:
188188

@@ -303,7 +303,7 @@ The hybrid query with semantic ranking is filtered to show only the hotels withi
303303

304304
1. In the `Program.cs` file of the `VectorSearchExamples` folder, uncomment the method call `SearchExamples.SearchHybridVectoryAndSemantic(searchClient, vectorizedResult);`. This method executes the following search function in the `SearchExamples.cs` class:
305305

306-
:::code language="csharp" source="~/azure-search-dotnet-samples/quickstart-vector-search/vectorsearchexamples/program.cs" id="SearchHybridVectoryAndSemantic":::
306+
:::code language="csharp" source="~/azure-search-dotnet-samples/quickstart-vector-search/vectorsearchexamples/SearchExamples.cs" id="SearchHybridVectoryAndSemantic":::
307307

308308
1. Run the project again, and the status of each document is printed below it:
309309

0 commit comments

Comments
 (0)