@(key ?? "(no key)")
+-
+ @foreach (var (name, value) in _document)
+ {
+
- @name +
- @DocumentValueFormatter.Format(value) + } +
@_loadError
+Loading @Name…
+
+ @_index.Fields.Count top-level @(_index.Fields.Count == 1 ? "field" : "fields")
+ @if (_keyField is not null)
+ {
+ · key @_keyField
+ }
+ @if ((_total ?? _statistics?.DocumentCount) is { } total)
+ {
+ · @total.ToString("N0") @(total == 1 ? "document" : "documents")
+ }
+ @if (_statistics is { } statistics)
+ {
+ · @ByteSize.Format(statistics.StorageSize) on disk
+ }
+
The definition as the emulator returns it to GET /indexes/@_index.Name.
| Field | +Type | +Retr. | +Search | +Filter | +Sort | +Facet | +Analyzer / vector | +||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+ @field.Path
+ @if (field.IsKey)
+ {
+ key
+ }
+ |
+ @field.Type |
+ @if (field.IsComplex)
+ {
+ @* Complex fields carry no attributes of their own; their subfields do. *@
+ + } + else + { + | @Flag(field.Retrievable) | +@Flag(field.Searchable) | +@Flag(field.Filterable) | +@Flag(field.Sortable) | +@Flag(field.Facetable) | +
+ @if (field.Dimensions is { } dimensions)
+ {
+ @dimensions dimensions
+ @if (field.VectorProfile is { } profile)
+ {
+ · @profile
+ }
+ }
+ else
+ {
+ @field.Analyzer
+ }
+ |
+ }
+ |||||
✓ on · blank off · – not set in the definition
+ + @if (_index!.ScoringProfiles.Count > 0) + { +@profile.Name
+ @if (profile.Name == _index.DefaultScoringProfile)
+ {
+ default
+ }
+ @suggester.Name@configuration.Name
+ @if (configuration.Name == _index.SemanticSearch.DefaultConfigurationName)
+ {
+ default
+ }
+ @profile.Name@_documentError
+Loading documents…
+This index has no documents.
+ } + else if (_document is not null) + { + var key = _keyField is not null && _document.TryGetValue(_keyField, out var keyValue) + ? DocumentValueFormatter.Format(keyValue) + : null; + +@(key ?? "(no key)")
+Fields that are not retrievable are left out, as they are from every query.
+ } + } + }; + + private static RenderFragment Flag(bool? value) => __builder => + { + switch (value) + { + case true: + ✓ + break; + case null: + – + break; + } + }; + + private static string? JoinFields(IEnumerable@_loadError
+Loading indexes…
++ Create an index through the REST API or an Azure SDK client pointed at this emulator, and + it will be listed here. +
+
+ @index.Definition.Fields.Count @(index.Definition.Fields.Count == 1 ? "field" : "fields")
+ @if (IndexSchema.KeyField(index.Definition) is { } key)
+ {
+ · key @key
+ }
+
+ @statistics.DocumentCount.ToString("N0") + @(statistics.DocumentCount == 1 ? "document" : "documents") +
++ @ByteSize.Format(statistics.StorageSize) + on disk +
+ } + else + { +Statistics unavailable
+ } + Search +