Here you can try searching in the Faceted index created in the demo application.
+
+
+ @if (_searchResults != null && _searchResults is IFacetResults facetSearchResults)
+ {
+
Facets found (Showing @facetSearchResults.Facets.Count())
+
+ @foreach (var facet in facetSearchResults.Facets)
+ {
+
@facet.Key
+
+ @foreach (var item in facet.Value)
+ {
+ - @item.Label (@item.Value)
+ }
+
+ }
+ }
+ else
+ {
+
No facet results
+ }
+
+
+
+ @if (_searchResults != null && _searchResults is ILuceneSearchResults luceneSearchResults)
+ {
+
@luceneSearchResults.TotalItemCount Results found (Showing @luceneSearchResults.Count()) - Found in: @_searchTime
+ @foreach (var searchResult in luceneSearchResults)
+ {
+
Id: @searchResult.Id, Score: @searchResult.Score, Values: @(string.Join(", ", searchResult.Values.Select(x => $"[{x.Key}: {x.Value}]")))
+ }
+ }
+ else if (_searchResults != null)
+ {
+
@_searchResults.TotalItemCount Results found (Showing @_searchResults.Count()) - Found in: @_searchTime
+ @foreach (var searchResult in _searchResults)
+ {
+
Id: @searchResult.Id, Score: @searchResult.Score, Values: @(string.Join(", ", searchResult.Values.Select(x => $"[{x.Key}: {x.Value}]")))
+ }
+ }
+ else
+ {
+
No results
+ }
+
+
+@code {
+ private List