@if (didYouMeanSuggestions().length > 0) {
{{ 'search.didYouMean' | translate }}
@if (originalQuery()) {
{{ 'search.searchInsteadFor' | translate }}: "{{ originalQuery() }}"
}
@for (suggestion of didYouMeanSuggestions(); track suggestion.text) {
{{ suggestion.text }}
{{ (suggestion.score * 100).toFixed(0) }}% {{ 'search.match' | translate }}
@if (suggestion.freq > 0) {
{{ 'search.frequency' | translate }}: {{ suggestion.freq }}
}
}
}
@if (!isLoading() && hasSearched() && totalCount() > 0) {
{{ 'search.resultsFound' | translate: { count: totalCount() } }}
@for (result of searchResults(); track result._id) {
}
@if (!isPanelOpen()) {
}
} @else {
@if (isLoading()) {
{{ 'common.loading' | translate }}
} @else if (hasSearched() && totalCount() === 0) {
{{ 'search.noResultsFor' | translate: { query: searchQuery } }}
} @else {
{{ 'search.enterQuery' | translate }}
}
}
@if (!isLoading() && hasSearched() && totalCount() > 0) {
}