Skip to content

Commit cd87171

Browse files
author
Matthew Harris
committed
Page
1 parent 487f234 commit cd87171

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Azure.AISearch.WebApp/Services/AzureCognitiveSearchService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Azure.AISearch.WebApp.Models;
22
using Azure.Search.Documents;
33
using Azure.Search.Documents.Models;
4+
using System.Text.RegularExpressions;
45

56
namespace Azure.AISearch.WebApp.Services;
67

@@ -188,7 +189,7 @@ private SearchResult GetSearchResultForChunksIndex(SearchResult<SearchDocument>
188189
var match = Regex.Match(searchResult.DocumentPage, @"#page=(\d+)");
189190
if (match.Success)
190191
{
191-
searchResult.DocumentPage = match.Groups[1].Value;
192+
searchResult.DocumentPage = match.Groups[1].Value;
192193
}
193194
}
194195
// Add to source URL

0 commit comments

Comments
 (0)