This repository was archived by the owner on Jun 15, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >netcoreapp2 .0</TargetFramework >
5+ <TargetFramework >net6 .0</TargetFramework >
66 </PropertyGroup >
77
88 <ItemGroup >
9- <PackageReference Include =" Azure.Search.Documents" Version =" 11.1.1" />
10- <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 2.2.0" />
11- <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 2.2.0" />
12- <PackageReference Include =" Microsoft.Spatial" Version =" 7.7.0" />
13- <PackageReference Include =" System.Text.Json" Version =" 4.7.2" />
9+ <PackageReference Include =" Azure.Search.Documents" Version =" 11.4.0" />
10+ <PackageReference Include =" Microsoft.Azure.Core.Spatial" Version =" 1.1.0" />
11+ <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 6.0.1" />
12+ <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 6.0.0" />
13+ <PackageReference Include =" Microsoft.Spatial" Version =" 7.12.3" />
14+ <PackageReference Include =" System.Text.Json" Version =" 6.0.6" />
1415 </ItemGroup >
1516
1617 <ItemGroup >
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ public partial class Hotel
4545 [ SearchableField ]
4646 public Address Address { get ; set ; }
4747
48- [ SearchableField ( IsFilterable = true , IsSortable = true ) ]
48+ [ JsonConverter ( typeof ( Azure . Core . Serialization . MicrosoftSpatialGeoJsonConverter ) ) ]
49+ [ SimpleField ( IsFilterable = true , IsSortable = true ) ]
4950 public GeographyPoint Location { get ; set ; }
5051
5152 public Room [ ] Rooms { get ; set ; }
Original file line number Diff line number Diff line change 11{
2- "SearchServiceEndPoint" : " [Put your search service EndPoint here]" ,
2+ "SearchServiceEndPoint" : " [Put your search service full URL here]" ,
33 "SearchIndexName" : " hotels" ,
44 "SearchServiceAdminApiKey" : " [Put your primary or secondary Admin API key here]" ,
55 "SearchServiceQueryApiKey" : " [Put your primary or secondary Query API key here]"
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >netcoreapp2 .0</TargetFramework >
5+ <TargetFramework >net6 .0</TargetFramework >
66 <LangVersion >7.1</LangVersion >
77 </PropertyGroup >
88
99 <ItemGroup >
10- <PackageReference Include =" Azure.Search.Documents" Version =" 11.1.1 " />
11- <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 2.2.0 " />
12- <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 2.2 .0" />
10+ <PackageReference Include =" Azure.Search.Documents" Version =" 11.4.0 " />
11+ <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 6.0.1 " />
12+ <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 6.0 .0" />
1313 <PackageReference Include =" Microsoft.Rest.ClientRuntime.Azure" Version =" 3.3.19" />
14- <PackageReference Include =" Microsoft.Spatial" Version =" 7.7.1 " />
15- <PackageReference Include =" System.Text.Json" Version =" 4.7.2 " />
14+ <PackageReference Include =" Microsoft.Spatial" Version =" 7.12.3 " />
15+ <PackageReference Include =" System.Text.Json" Version =" 6.0.6 " />
1616 </ItemGroup >
1717
1818 <ItemGroup >
You can’t perform that action at this time.
0 commit comments