We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dab44f7 commit 6784ac5Copy full SHA for 6784ac5
src/Azure.AISearch.WebApp/Pages/Shared/_SearchResponse.cshtml
@@ -8,6 +8,11 @@
8
}
9
10
<div class="search-results">
11
+ @if (!Model.Answers.Any() && !Model.Captions.Any() && !Model.SearchResults.Any())
12
+ {
13
+ <div class="mt-3 alert alert-info">Sorry, there are no results for your search query!</div>
14
+ }
15
+
16
@if (Model.Answers.Any())
17
{
18
<h4 class="mt-3">@Model.Answers.ToCountString("answer")</h4>
@@ -40,11 +45,7 @@
40
45
41
46
42
47
43
- @if (!Model.SearchResults.Any())
44
- {
- <div class="mt-3 alert alert-info">Sorry, there are no results for your search query!</div>
- }
- else
48
+ @if (Model.SearchResults.Any())
49
50
<h4 class="mt-3">@Model.SearchResults.ToCountString("result")</h4>
51
<ol class="list-group">
0 commit comments